[Glass] Best Practice To Programmatically add an instance variable to an existing class?
Dale Henrichs via Glass
glass at lists.gemtalksystems.com
Fri Aug 18 11:07:39 PDT 2017
Reg,
I think you should look at an old thread from this list "Class renamed
and migrations practices"[1] and in particular you will want to look at
the post from Otto Behrens[2] where he shares the code that he uses for
managing migrations.
Dale
[1]
http://forum.world.st/Class-renames-and-migrations-practices-td4892354.html
[2]
http://forum.world.st/Class-renames-and-migrations-practices-tp4892354p4892390.html
On 8/17/17 3:27 PM, Dale Henrichs wrote:
> ... dynamically? .... there are ways to use other facilities within
> tODE/GsDevKit to simplify the process a bit (sing McClassDefinition
> and GsDeployer), but if you want to do it using the base GemStone
> facilities, then what Martin said ...
>
>
> On 08/17/2017 02:58 PM, Dale Henrichs wrote:
>> Reg,
>>
>> If you are using tODE, then you can edit the class definition and
>> then save it ... the new class will be created and all instances of
>> the old class will be migrated to the new class ...
>>
>> Dale
>>
>> On 08/16/2017 06:34 PM, Reg Krock wrote:
>>> HI,
>>>
>>> What is the best practice for dynamically adding an instance
>>> variable to an existing class?
>>>
>>> There are two classes in Behaviour -
>>> #addInstVarName:
>>> #addInstVar:
>>>
>>> Thanks,
>>>
>>> Reg
>>
>
More information about the Glass
mailing list