Re: Ideas for next Eu
----- Original Message -----
From: Greg Phillips <i.shoot at REDNECKS.COM>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Tuesday, November 16, 1999 12:04 AM
Subject: Re: Ideas for next Eu
> Here's another program flow idea:
> restart(id)
> where id is the name of an enclosing function or procedure.
> Consider the following:
>
> integer a
> a = 0
>
> procedure test()
> a+=1
> if a != 2 then
> restart(test)
> end if
> puts(1, "a = 2!!")
> end procedure
>
> restart(test) implies that execution continues at the start of the
procedure.
> It could be used in conjunction with exit() to test for certain
conditions.
>
> Useless? Maybe. But heck, it's an idea.
Is that a "goto start of proc" or a recursive self-call ? Ie, do the vars
get reset, or new vars built?
Kat
|
Not Categorized, Please Help
|
|