|
From: | Paolo Bonzini |
Subject: | Re: [Help-smalltalk] Re: How to exit loops? |
Date: | Thu, 10 Jul 2008 16:19:18 +0200 |
User-agent: | Thunderbird 2.0.0.14 (Macintosh/20080421) |
Thank you for your answers, I also found a solution by extending the Number class like this:
Nice solution (together with Lukas's). Has the advantage that *you* were able to make it up!
1 to: 10 do: [:x | x printNl.] butPleaseExitIf: [:x | x = 3.]
Or #to:do:whileFalse: Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |