Stateful traits

Philippe Marschall philippe.marschall at gmail.com
Tue Sep 26 15:47:41 UTC 2006


> Another question: Can Traits define class side behaviour?
For stateless Traits (shouldn't be different with stateful Traits):
Yes they can. There are two ways.
- Either implement the behavior on the class side of the trait (iirc
this is called classtrait)
- Or include (right term?) the trait in the class side. The instance
side behavior of the trait then becomes class side behavior of the
class. What happens with classtrait bevahior in this case I don't
know.

Philippe



More information about the Squeak-dev mailing list