Peter Schorn wrote:
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.
Should be easy. Does CodeWarrior support both forms?