[Glass] Migration of instances ...

Dale Henrichs via Glass glass at lists.gemtalksystems.com
Fri May 22 10:00:11 PDT 2015


Marten,

That's basically it...

Dale

On 05/21/2015 10:43 PM, itlists at schrievkrom.de via Glass wrote:
> manually this could be done via the following code - I assume (without
> considering out of memory problems or stuff like this):
>
>
> /* here is code to import my new class definitions and methods */
>
> /* then a commit is done */
>
> /* a new transaction is started */
>
> allMyClasses do: [ :eachClass |
>    | classHistory   |
>
>    (classHistory := eachClass  classHistory) isNil ifFalse:[
>    "the last element seems to be the current class"
>      1 to: (classHistory size -1) do: [ :anIndex |
>        (classHistory at: anIndex) migrateInstancesTo: eachClass
>      ].
>    ].
> ].
>
> /* and again a commit */
>
> Marten
>



More information about the Glass mailing list