[squeak-dev] Re: Issue with traits

Andreas Raab andreas.raab at gmx.de
Wed Oct 21 07:27:51 UTC 2009


Igor Stasenko wrote:
> Ouch... so VM behavior depends on correct methodClass slot. Thanks for
> reminding!
> I remember that methodClass plays important role (and its important to
> have method and its
> methodClass being in sync with class where the method installed), but
> forgot the details :)
> 
> That could lead to even worse results, if you use super sends, and then
> in base class , accessing the instance variables in base method. It
> could corrupt the memory & crash the VM.

Yes, that's why I returned a literal (so the experiment wouldn't crash 
you ;-)

> I hope this is already fixed, because the image where i checked it
> is quite old one - 3.10.2

I doubt it. Traits are just another abandoned experiment in Squeak.

Cheers,
   - Andreas



More information about the Squeak-dev mailing list