method dictionary lookups and walking up the inheritance tree

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


Hi,

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?

Thanks,

Michael



More information about the Squeak-dev mailing list