2009/10/1 Mariano Martinez Peck <[email protected]>

> Thanks Hernán, it is quite better!!!  However, I still would love not to
> use all the brackets ;)
> I would use this way for the moment...
>


As a compromise, you could do what Array does with its with:with:with:with:
style thing and make BlockClosure>>on:do:on:do:on:do:, nesting the blocks
yourself.  Alternatively, it'd be quite easy to add BlockClosure>>onAllDo:,
which took a Dictionary mapping exception classes to blocks and called the
appropriate one based on the actual exception raised.  With the recent
closure changes, your blocks will actually work as expected, too, rather
than trampling random method variables on execution. :)

--Benjamin
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to