[Pharo-project] Xemina Pharo, Hà ná»i, Viá»t Nam
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. Bye Torsten -- GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
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.
Yes your example is nice. Thank you Torsten, for your comment. -- Serge Stinckwich UMI UMMISCO 209 (IRD/UPMC), Hanoi, Vietnam Every DSL ends up being Smalltalk http://doesnotunderstand.org/
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.
participants (3)
-
Igor Stasenko -
Serge Stinckwich -
Torsten Bergmann