Metaclass issues.

Colin Putney cputney at wiresong.ca
Sun Mar 19 18:01:24 UTC 2006


On Mar 19, 2006, at 4:11 AM, Alan Lovejoy wrote:

> If you provided the new Metaclass with a MethodDictionary with the  
> right
> CompiledMethods in it, you wouldn't need to give it a superclass.   
> But the
> usual practice is to make the superclass of a Metaclass instance be  
> either
> Class (which is an instance of an instance of Metaclass) or else  
> some other
> already-provisioned Metaclass instance.

Michael,

Alan is right. At an absolute minimum, objects must be able to  
respond to #doesNotUnderstand:, either in their own method  
dictionary, or via their superclass. If not, you get a recursive  
#doesNotUnderstand: loop, which might be the cause of your VM crash.

Colin



More information about the Squeak-dev mailing list