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

Rob Withers rwithers12 at mediaone.net
Thu Jan 31 04:17:52 UTC 2002


At 10:20 AM 1/30/2002, you wrote:
>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 :-)

excellent.  :)


> > (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 ;-)

Quite frankly, I don't think I do, but I don't see another way to do it at 
the meta-level.  We need delegation and a prototype model.

Rob




More information about the Squeak-dev mailing list