Igor Stasenko wrote:
> 
> One of the ways of introducing a stateful traits is changing the VM
> object format.
> 
Sounds like it could be very powerful.

As it happens, in the fork healing example, it's the very statelessness of
the traits that make it work so simply. By taking out the  check for
statefulness when the method is moved to a trait, the trait will quite
happily address the several variables in its user classes. This then removes
any need for accessors, helper classes for state, initialization, or other
attempts to tame the beast.

I wouldn't want to rely on it continuing to work in all conditions, but as a
step in a refactoring it seems very handy.

..Stan
-- 
View this message in context: 
http://n4.nabble.com/Quasi-stateful-traits-tp1571120p1571553.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.

_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to