From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,cf907209f066462e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-16 10:50:12 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: How to port exit(s) from C to Ada Date: 16 Oct 2002 13:45:46 -0400 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: <3DA69C5B.A3B8F264@lml.ls.fi.upm.es> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1034791001 19981 128.183.220.71 (16 Oct 2002 17:56:41 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 16 Oct 2002 17:56:41 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:29850 Date: 2002-10-16T17:56:41+00:00 List-Id: Manuel Collado writes: > To terminate immediately, I can raise a user-defined unhandled > exception, but it would imply an abnormal termination, so the specified > exit status would be ingnored. Catch that exception in the top level procedure, and just exit normally. As long as you don't have dependent tasks, that will work. > Is there a way to reproduce the behaviour of the 'exit(status)' > C-call in pure Ada, without calling it as a foreign procedure? There's really nothing wrong with calling 'exit', if that's the behaviour you actually want. -- -- Stephe