comp.lang.ada
 help / color / mirror / Atom feed
* exit from a procedure
@ 2002-07-14  0:14 Jan Prazak
  2002-07-13 21:45 ` chris.danx
  2002-07-13 22:27 ` tmoran
  0 siblings, 2 replies; 8+ messages in thread
From: Jan Prazak @ 2002-07-14  0:14 UTC (permalink / raw)


Is it possible to exit from a procedure?

I am using a label, but it's not a good solution, because there a
statement must follow, so I have to say "X := 0;" or something after the
label.

....
.... goto Big_End;
....

<<Big_End>> X := 0;
end procedure_name;

It is easy in Pascal (with "exit"), so I think it must also work in Ada.

And is it possible to stop the whole program? It's "halt" in
Pascal, but it doesn't work in Ada, so maybe there is another name for it.


Jan




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-07-16 14:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-14  0:14 exit from a procedure Jan Prazak
2002-07-13 21:45 ` chris.danx
2002-07-13 22:27 ` tmoran
2002-07-14 21:16   ` Jan Prazak
2002-07-15 12:14     ` Steve Sangwine
2002-07-15 19:10       ` Jan Prazak
2002-07-16  8:30         ` Gautier
2002-07-16 14:08           ` Jan Prazak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox