[squeak-dev] MethodDictionary implementation

Igor Stasenko siguctua at gmail.com
Mon Jul 20 06:01:58 UTC 2009


2009/7/20 Ralph Boland <rpboland at gmail.com>:
> I have been looking at MethodDictionary.
> It seems to have very little to do with Methods.
> It seems to me that a better design would have been
> to have a class VarDictionary which does not use
> Associations (similar to MethodDictionary).
> MethodDictionary would inherit from VarDictionary
> and add the couple of additional methods it needs.
> VarDictionary would then be available for others to use.
>
> Better still would be to have MethodDictionary not
> be a variable class at all but simply use an additional
> variable  "values".  Again MethodDictionary should
> really inherit from a class that provides this service.
> I would use this service in my own code.
>
This will increase a method lookup times & lengthen the path for
accessing the methods by VM.
Don't forget, that MethodDictionary having such special format only
because to satisfy VM.

> Ralph Boland
>
>



-- 
Best regards,
Igor Stasenko AKA sig.



More information about the Squeak-dev mailing list