Re: A Euphoria wish list item (minor)

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

That exit (2) was my idea one year ago back in January 2001 (strange how
years fly by fast).
I originally proposed two or more exit statements followed:

while .. do
    while .. do
        exit
        exit
    end while
end while

or:

while .. do
    while .. do
        exit (2)
    end while
end while

You can search for "exiting out of nested loops" in subject in e-mail
archives if you are interested.

----- Original Message -----
From: <mistertrik at hotmail.com>
To: "EUforum" <EUforum at topica.com>
Sent: Sunday, February 17, 2002 3:22 AM
Subject: Re: A Euphoria wish list item (minor)


>
> >Modify the "exit" statement so I can break out of nested loops, like >the
> >"break" statement in PHP.
> >
> >So "exit" would become shorthand for "exit(1)", while "exit(2)" would
> >break out of two loops, "exit(3)" would break out of 3, etc...
>
> <SARCASM>
>     Haven't seen this request before....
> </SARCASM>
>
>
> P.S. Hey Kat, there's some new tags for .htx
>
> --Mr Trick
>
>
>
>

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

Search



Quick Links

User menu

Not signed in.

Misc Menu