8 Mar
2006
8 Mar
'06
7:04 p.m.
Dear all, are there any plans to make non-local exits out of a method legal? This works in CodeWarrior Pascal and looks somehow better than a goto. The following program illustrates the issue: I could not find a way to make a non-local exit out of q using the exit statement. program exittest; { compile with gp --nonlocal-exit exittest.pas } type o = object procedure p; end; procedure o.p; procedure q; begin exit(p); { error: invalid argument `p' to `Exit' } exit(o.p); { error: syntax error before `.' } end; begin { o.p } end; begin { exittest } end. Best regards, Peter
7488
Age (days ago)
7490
Last active (days ago)
11 comments
5 participants
participants (5)
-
Adriaan van Os -
Frank Heckenbach -
Martin Liddle -
Peter Schorn -
Waldek Hebisch