[squeak-dev] Compiler pedantic about ifNotNil: argument

Levente Uzonyi leves at elte.hu
Sun Oct 10 18:36:29 UTC 2010


On Sun, 10 Oct 2010, Igor Stasenko wrote:

> Okay,
> lets assume, we using #cull: for ifNotNil: argument.
>
> Then how about ifNil:ifNotNil ?
>
> What you expect from given example:
>
> self perform: (object ifNil: #foo ifNotNil: #bar)

If object is nil, then the value of [self perform: #foo], else [self 
perform: (object perform: #bar)].


Levente

>
> ?
>
>
>
> -- 
> Best regards,
> Igor Stasenko AKA sig.
>
>



More information about the Squeak-dev mailing list