Mixins (was Re: [MCZ] and adding related files)

Stephen Pair stephen at pairhome.net
Mon Nov 10 16:33:57 UTC 2003


Avi Bryant wrote:

>
> On Nov 8, 2003, at 3:30 PM, Colin Putney wrote:
>
>> Right now, Monticello can only work with ANSI Smalltalk (more or 
>> less) programs, but there's no reason we couldn't adapt it for 
>> Traits, Aspects, Mixins, Prototypes or whatever else people find 
>> interesting.
>
>
> Which reminds me - I did a really simple Mixin implementation a bit 
> ago that I don't think I ever mentioned on the list.  If anyone wants 
> to play with it, it's at http://beta4.com/mc/mixins/Mixins-ab.8.mcz .  
> Might be useful as a straw-man counterpoint to Traits ;).
>
> IIRC it has some SUnit tests that illustrate the usage.  Note the use 
> of "self super foo" instead of "super foo" in mixin methods.
>
> Avi


And I did a similar thing with MiniTraits (see SqueakMap).  It was done 
a while ago, so your mileage may vary in recent Squeak releases.

- Stephen




More information about the Squeak-dev mailing list