Yes, this can be surprising at first.
But I think this is because you read it with a preformated Smalltalk
mind, rather than just english.
 it's just like:

   (1 to: 10) select: #even.

Nicolas

2010/10/10 Stéphane Ducasse <stephane.duca...@inria.fr>:
> personnally I do not like this form
> What does it do?
>
>>    process ifNotNil: #terminate.
>
>
> for me it means passes the symbol #terminate as argument to the method 
> ifNotNil:
> If it has a more magical behavior then I do not know it.
>
> Stef
>
>
>> The compiler uselessly insist on #ifNotNil: argument being a zero/one arg 
>> block.
>> Thus we cannot write this xtream sentence
>>
>>    process ifNotNil: #terminate.
>>
>> When the argument is not a block, Compiler should avoid inlining and
>> just send a normal message.
>>
>> cheers
>>
>> Nicolas
>>
>> _______________________________________________
>> Pharo-project mailing list
>> Pharo-project@lists.gforge.inria.fr
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
>
> _______________________________________________
> Pharo-project mailing list
> Pharo-project@lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>

_______________________________________________
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to