Hi Norbert, Mariano,

there is a quick way to see which classes are using traits. Inspect the 
following expression:

Smalltalk allClasses select: [:cls| cls hasTraitComposition and: [cls 
traitComposition size > 0]]

On 31 May 2010, at 10:15, Mariano Martinez Peck wrote:

> Hi Norbert: I am not sure the current situation in Squeak but in Pharo I know 
> it is used in some places.
> 
> I think in some Collection testing and Nile framework...but I am not sure.
> 
> Anyone can help?
> 
> Cheers
> 
> Mariano
> 
> ---------- Forwarded message ----------
> From: Norbert Fortelny <[email protected]>
> Date: Wed, May 19, 2010 at 5:17 PM
> Subject: [squeak-dev] traits
> To: squeak-dev <[email protected]>
> 
> 
> Could anyone point me to sample code using traits in squeak.
> Poked around a bit but couldn't find anything.
> thanks and sorry if that is inappropriate here.
> Norbert
> 
> 
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

--
Johan Fabry   
[email protected] - http://dcc.uchile.cl/~jfabry
PLEIAD Lab - Computer Science Department (DCC) - University of Chile



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

Reply via email to