[squeak-dev] Senders "too thorough"

Marcel Taeumel marcel.taeumel at hpi.de
Sun Jul 21 15:58:00 UTC 2019

Hi Levente,

thanks for the pointer. I will take a look at it tomorrow. :-)

Am 20.07.2019 13:36:28 schrieb Levente Uzonyi <leves at caesar.elte.hu>:
Hi All,

With the recent changes of literal searching, I've found something
If you evaluate the following snippet, there will be some false positives
(e.g. Scanner >> #initialize) on the list.
These methods do not reference the searched literal, but they reference a
class variable (TypeTable), which happens to be an array containing the
searched symbol:

SystemNavigation default browseAllCallsOn: #xLitQuote.

The reason why it appears is that CompiledCode >> #hasLiteral: will try
Object >> #hasLiteral: first, which uses #allLiteralsDo:, which descends
into the value of the binding of the TypeTable class variable and finds the symbol.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20190721/ce9477a5/attachment.html>

More information about the Squeak-dev mailing list