AW: [Q] mixin pattern - how to use an alternate Behavior for Class

Andreas Raab Andreas.Raab at gmx.de
Wed Jan 30 15:20:53 UTC 2002


Rob,

> I had to go for another couple of laps around the track 
> before I really saw what you meant.  I could have my MixinMetaclass,
> which has an instance variable holding my contextClass.  I could have
> the various  '#compile...' methods be overridden in Class to do a 
> 'self class thisClassCompile:...' 

Exactly what I meant :-)

> (what is the opposite of meta?  ;)  and implement the appropriate 
> activities there that I could control with different 
> metaclass classes.  :)
> 
> Is this a reasonable change to the system?

Hey, that just depends on whether you like it or not ;-)

Cheers,
  - Andreas





More information about the Squeak-dev mailing list