Re: Demystifying "most Smalltalk’s don't directly support multiple inheritance"
Alexandre Bergel
Alexandre.Bergel at cs.tcd.ie
Sun Jun 25 15:14:45 UTC 2006
Hi Klaus!
I tried and I guess I understand how you did it.
Tricky, you use the literal for the super class reference to tell the
VM to start the lookup in another class.
I think you might have problems with recursive calls (i.e., 'super
foo' that is called twice by two different objects) and concurrency.
> The third example employs the existing method cache of the VM (the
> original Squeak VM) for multiple inheritance message sends and thus
> minimizes the overhead to less than 5% (and the demo is written
> in .st code :-)
Your implementation relies on a doesNotUnderstand:. I am interested
in knowing how can you have just a 5% overhead.
Cheers,
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.cs.tcd.ie/Alexandre.Bergel
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
More information about the Squeak-dev
mailing list
|