[Pharo-project] Halt

Damien Cassou damien.cassou at gmail.com
Mon Aug 29 03:37:36 EDT 2011

On Mon, Aug 29, 2011 at 9:29 AM, Stéphane Ducasse
<stephane.ducasse at inria.fr> wrote:
>        Halt ifTrue: [a = 2].
> two questions in my questions :)
> [] and True:

why would you need a block here? The expression is going to be
evaluated once and only once: if the expression is true than a
debugger pops up otherwise nothing happens.

#if is shorted than #ifTrue and closer to English:

"please halt if the variable a equals 2"

Damien Cassou

"Lambdas are relegated to relative obscurity until Java makes them
popular by not having them." James Iry

More information about the Pharo-dev mailing list