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,bff0c2e09500f856 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-02-05 05:43:27 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 do I end the program? Date: 05 Feb 2002 08:26:50 -0500 Organization: NASA Goddard Space Flight Center Message-ID: References: NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1012915880 17662 128.183.220.71 (5 Feb 2002 13:31:20 GMT) X-Complaints-To: dscoggin@cne-odin.gsfc.nasa.gov NNTP-Posting-Date: 5 Feb 2002 13:31:20 GMT User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 Xref: archiver1.google.com comp.lang.ada:19632 Date: 2002-02-05T13:31:20+00:00 List-Id: David Starner writes: > How do I exit the program? It may seem like a silly question, but I'm > trying to exit from a function called from a callback written in C, so I > can't just return or raise an exception. glutMainLoop never returns, so > I can't run off the end of the main function. I used > GNAT.OS_Lib.OS_Exit. Is there a pure Ada alternative? To exit cleanly, you need to tell the top level application to exit. There should be a return value, or out parameter, or global variable that says "give up and exit, please". -- -- Stephe