method dictionary lookups and walking up the inheritance tree

Michael Haupt mhaupt at
Tue May 16 16:06:32 UTC 2006


once more, apologies for cross-posting.

>From ClassBuilder, I could see that, when a new class is created, the
superclass's method dictionary contents are copied to the method
dictionary of the new class. Still, the interpreter climbs, in
Interpreter>>lookupMethodInClass:, up the inheritance tree to resolve
a method.

Why is that? Have I missed a spot where subclass creation does not
entail method dictionary copying?



More information about the Vm-dev mailing list