logo       

Traits: msg#00131

lang.smalltalk.squeak.beginners

Subject: Traits


Armed with new knowledge of Traits gained from the excellent "Squeak By
Example" I tried:
Smalltalk allClasses select: [:each | each hasTraitComposition]

which gave:

an OrderedCollection(ActionSequence BalloonBezierSimulation BalloonEngine
BalloonEngineConstants BasicRequestor Behavior BrowserProvider
....WorldMenuProvider XMLTokenizer ZipConstants ZipFileConstants)

However browsing to a random class say "ActionSquence", doesn't show any
evidence of Trait composition. Is this a problem with the current browser?
Also is there a way to browse a Trait say TPureBehavior

My image is based on: sq3.9-7067web07.08.1

Thanks

Nick
--
View this message in context:
http://www.nabble.com/Traits-tf4512519.html#a12870783
Sent from the Squeak - Beginners mailing list archive at Nabble.com.


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise