[Pharo-project] syntax highlighting for (stateful) traits (non-local methods)

Alexandre Bergel alexandre.bergel at me.com
Mon Apr 4 21:20:37 CEST 2011

he he. I am not sure Fred wrote in English. 


On 4 Apr 2011, at 14:15, Toon Verwaest wrote:

> Do you have an exact reference on this?
> On 04/04/2011 05:55 PM, Stéphane Ducasse wrote:
>>> Another very cool thing that we can do now (which would require 3 lines of change in my system though), is that the slot can also be responsible for instance migration. There are four cases:
>>> 1- the instance variable didn't exist and now it does
>>> 2- the instance variable existed but disappeared
>>> 3- the metaobject changed (new semantics)
>>> 4- the metaobject stayed the same
>> Did you check the work of fred rivard because he was managing the dynamic change of class and managing slot reinitialization?
>>> Basically the only case that is "handled" by standard Pharo is case 1; and what you do there is putting nil in the field. In our model the slot could do something more interesting when it's migrating the instances. And we could tackle the other cases too. I think it's starting to get ideal to implement an active context on top ;-)
>>> cheers,
>>> Toon

Alexandre Bergel  http://www.bergel.eu

More information about the Pharo-project mailing list