goto's, and loops

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

Hi all,

Why is there no "goto" in Euphoria? It would be easy enough to implement,
and if you don't want to use it, you don't haveto. I've used it sparingly in
other languages, for the example below, for example. Maybe i am in a rut,
but i don't see an nice way to do this example in Euphoria, can you help,
please? ( Without making another procedure and all the vars global. )

loop1
some code
loop2
test var, maybe goto target
-- an "exit" here would get you out of loop2, not loop1
EndOfLoop1
more code
EndOfLoop2
:target

thanks,
Kat

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

Search



Quick Links

User menu

Not signed in.

Misc Menu