#do: on MethodDictionaries

Alejandro F. Reimondo alereimondo at sugarweb.com
Sun Jan 11 18:43:18 UTC 1998


Is it posible that #do: does not work ok on MethodDictionaries ?
(afr 1/1/98 16:57)

aMethodDictionary do: [:each| each yourself ].

This code does not works.  Oops.

MethodDictionaries activates the Dictionary>>#do: method that is implemented like:

do: aBlock
    super do: [:assoc| aBlock value: assoc value ]

but... assoc is a CompiledMethod (not an association) and does not undestand #value

Is this a bug ?

Thanks.
Ale.


Alejandro F. Reimondo
Feel free to visit Smalltalk User Group of Argentina (SUGAR)
at http://www.sugarWeb.com





More information about the Squeak-dev mailing list