[squeak-dev] ObjectAsMethodWrapper >> #uninstall breaks class organisation

Bert Freudenberg bert at freudenbergs.de
Thu Aug 23 16:35:36 UTC 2012


On 2012-08-23, at 15:07, Frank Shearar wrote:

> So the organizer loses the reference because ObjectAsMethodWrapper
> calls #removeSelectorSilently:, which eventually calls
> ClassDescription >> #removeSelector:. It re-adds the now-unwrapped
> CompiledMethod to the method dictionary with #addSelector:withMethod:
> which eventually calls ClassDescription >>
> #basicAddSelector:withMethod:. However, this does _not_ add the
> selector to the organization's elementArray, and Bad Things Happen.


Why is removing necessary in the first place? Couldn't it just replace the compiled method? 

- Bert -




More information about the Squeak-dev mailing list