Re: goto's, and loops

new topic     » goto parent     » topic index » view thread      » older message » newer message

Another language I use, Progress 4GL, has a specialized variety of goto.
It uses the syntax "leave <blockname>" . Your example would be coded
thus...

loop1: repeat:
 some code
loop2: repeat:
 if var then leave loop1.
end. /* of loop2 */
  more code
end. /* of loop 1 */

The idea of named blocks of code might not be too difficult it add to
Euphoria, however name-space issues might arise.


cheers,
Derek Parnell
dparnell at bigpond.net.au
Melbourne, Australia

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu