Xemina Pharo, Hà nội, Việt Nam

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Xemina Pharo, Hà nội, Việt Nam

Torsten Bergmann
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

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Xemina Pharo, Hà nội, Việt Nam

SergeStinckwich
2010/4/29 Torsten Bergmann <[hidden email]>:

> 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/

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Xemina Pharo, Hà nội, Việt Nam

Igor Stasenko
In reply to this post by Torsten Bergmann
2010/4/29 Torsten Bergmann <[hidden email]>:

> 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
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>



--
Best regards,
Igor Stasenko AKA sig.

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