[squeak-dev] asking browser for references to a class finds a method that merely refers to a symbol of the same name

Tobias Pape Das.Linux at gmx.de
Fri Jan 30 21:37:33 UTC 2015


On 30.01.2015, at 22:15, tim Rowledge <tim at rowledge.org> wrote:

> On 30-01-2015, at 12:36 PM, Eliot Miranda <eliot.miranda at gmail.com> wrote:
> 
>> 
>> 
>> On Fri, Jan 30, 2015 at 12:27 PM, tim Rowledge <tim at rowledge.org> wrote:
>> Seriously? How did that happen?
>> 
>> I did it.  It's so that one finds usages such as
>> 
>>    Smalltalk classNamed: #Array
> 
> Hmm, ok. It’s more than a bit disconcerting but I kinda see your logic. Can’t even really argue for double-checking against the ‘classNamed:’ since obviously anyone could come up with an analogous message that would screw that.
> 


Yes. For example, I have written code like this (don't ask why ;))

possibleRuleClasses

	^ (self subclassesIfAvailable: #GRSlimeBlockLintRule),
	   (self subclassesIfAvailable: #GRSlimeParseTreeLintRule)
		select: [:cls | cls name beginsWith: 'GR']

Best
	-Tobias


More information about the Squeak-dev mailing list