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

Stéphane Ducasse stephane.ducasse at inria.fr
Mon Apr 4 17:55:20 CEST 2011


>> 
> 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



More information about the Pharo-project mailing list