[Newbies] Traits

Matthew Fulmer tapplek at gmail.com
Mon Sep 3 16:30:39 UTC 2007


On Mon, Sep 03, 2007 at 06:42:15PM +0300, andy.burnett at knowinnovation.com wrote:
> Thanks Matthew, that's interesting. I have never heard of traits.  So 
> 'uses:' is a way of incorporating behaviour/values which don't naturally 
> inherit?

Traits are a new (as of squeak 3.9) feature of squeak, and were
added by the Software Composition Group at Bern University.
Their traits page has a bit more information:

http://www.iam.unibe.ch/~scg/Research/Traits/index.html

Traits are similar to Ruby Mixins: basic behavior patterns can
be defined in a trait then inserted into classes that have that
behavior pattern.

-- 
Matthew Fulmer -- http://mtfulmer.wordpress.com/
Help improve Squeak Documentation: http://wiki.squeak.org/squeak/808


More information about the Beginners mailing list