Re: Ideas for next Eu

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

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.

Regards,
Greg Phillips

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

Search



Quick Links

User menu

Not signed in.

Misc Menu