[squeak-dev] CompiledMethod >> #=

Thiede, Christoph Christoph.Thiede at student.hpi.uni-potsdam.de
Mon Jan 10 14:31:00 UTC 2022


Hi all,


currently, the comparison of CompiledMethods does not honor their selector, e.g.:


Object >>  bar: arg

^ arg * 2


Object >>  foo: arg

^ arg * 2

(Object >> #foo:) = (Object >> #bar:) will answer true.

Is this intended behavior or rather a slip? I find this especially confusing as it the CompiledCodeInspector, you can see a difference in the literals of both methods, but nevertheless, #hasSameLiteralsAs: answers true.

Best,
Christoph

<http://www.hpi.de/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20220110/aeddefd4/attachment.html>


More information about the Squeak-dev mailing list