[Pharo-project] haltOnce and haltOnCount

Marcus Denker marcus.denker at inria.fr
Fri Oct 1 14:13:56 EDT 2010


On Oct 1, 2010, at 8:08 PM, Hernan Wilkinson wrote:
> 
> PS: A #haltIf: aBlock message would be handy too :-)

already there:

1 haltIf: [1<2].
1 haltIf: [:rec | rec isInteger].
1 haltIf: (1<2).
1 haltIf: #doIt

especially putting a symbol is very useful. e.g. you can out the selector of the test and then even
put a haltIf: into system methods called all the time. (e.g. collections).

	Marcus

--
Marcus Denker  -- http://www.marcusdenker.de
INRIA Lille -- Nord Europe. Team RMoD.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20101001/061b7730/attachment-0001.html>


More information about the Pharo-dev mailing list