[Newbies] Re: Traits Browser
On 4/15/2010 7:58 PM, Sean P. DeNigris wrote: I have read all about Traits and I'm eager to try them out, but the default browser (Squeak4.1-9885-beta) doesn't seem to be aware of them - what am I missing? What are developers using traits using? What level of awareness are you looking for? There's no special support required to use or define traits. I think OmniBrowser might have some highlighting for traits methods so you could try installing it and see if that suits your awareness needs. Me, I stay away from multiple (implementation) inheritance. In my experience, multiple inheritance creates more problems than it solves. Good luck. Cheers, - Andreas ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
[Newbies] Re: Traits Browser
Teleplacer wrote: What level of awareness are you looking for? Well, I want to be able to see which traits are used by which core classes, so that I can learn about traits. And, I want to be able to view my own classes that will use traits either flattened (which is all I see now), or expanded into the component traits. Teleplacer wrote: I think OmniBrowser might have some highlighting for traits methods so you could try installing it and see if that suits your awareness needs. I'll check that out, thanks. Sean -- View this message in context: http://n4.nabble.com/Traits-Browser-tp1934550p1937154.html Sent from the Squeak - Beginners mailing list archive at Nabble.com. ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
[Newbies] Re: Traits
Hi Nick, on Tue, 25 Sep 2007 02:00:50 +0200, you wrote: 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? You're right, (TraitComposition allInstances reject: [:each | each isEmpty]) size gives just 17 in my squeak-web image but TraitComposition allInstances size reports 325. Could you report your find on bugs.squeak.org, this should be investigated if empty TraitComposition should really populate the image. Perhaps #traitComposition was used unconditional. Also is there a way to browse a Trait say TPureBehavior Just select that name and alt-b opens a browser on TPureBehavior. /Klaus My image is based on: sq3.9-7067web07.08.1 Thanks Nick ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners