2010/4/29 Torsten Bergmann <astares@gmx.de>:
Hi Serge,
nice demo! Looking through the slides in "Build you own control structure" you use #ifSeven: as example which is easy, but not a "real world use case".
I typically use another example:
In a few languages you have a "REPEAT (block) UNTIL (cond)" control structure (in Pascal for instance) which is easy to add to Smalltalk with a #repeatUntil: method on BlockClosure.
Why not just use: [ your code. yourCondition ] whileFalse. ?
Bye Torsten
-- GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- Best regards, Igor Stasenko AKA sig.