ifNotNilDo: (was Re: [squeak-dev] SqueakMap in 4.1)
Levente Uzonyi
leves at elte.hu
Mon Apr 12 18:21:57 UTC 2010
On Mon, 12 Apr 2010, Tobias Pape wrote:
> Hi,
>
> Am 2010-04-12 um 18:26 schrieb Levente Uzonyi:
>
>> (method getSource asString reject: #isSeparator) includesSubString: 'ifNotNil:[:' ] ].
>
> Given _I_ would have written Code there,
> you wouldn't find any of it with this line,
> as I would have used 'ifNotNil: [:'.
> some other would have used 'ifNotNil:[ :'
> and even other 'ifNotNil: [ :'.
The separators are rejected, so all variations you mentioned will be
found.
> anyhow, what about bytecode inspection? *duck&hide* ;)
That could work too, but that's probably a lot more complicated.
Levente
>
> So Long,
> -Tobias
>
>
>
More information about the Squeak-dev
mailing list
|