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,3ef07b2a9707133a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-07-15 05:20:36 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed.gamma.ru!Gamma.RU!peer.news.eu-x.com!server2.netnews.ja.net!CAMPUS.UniversityofEssex.com NNTP-Posting-Host: 155.245.41.148 Newsgroups: comp.lang.ada Date: Mon, 15 Jul 2002 13:14:26 +0100 Message-ID: <3d32bb2d.14256746@news.essex.ac.uk> Sender: "Sangwine, Stephen J" From: sjs@essex.ac.uk (Steve Sangwine) Subject: Re: exit from a procedure Organization: University of Essex References: X-Newsreader: Forte Free Agent 1.21/32.243 Xref: archiver1.google.com comp.lang.ada:27104 Date: 2002-07-15T13:14:26+01:00 List-Id: On Sun, 14 Jul 2002 22:16:28 +0100, Jan Prazak wrote: >1st answer: > >return; ?? In a procedure? I will try it. The return (or RETURN) statement has been the absolutely standard way of returning from a procedure in many languages (e.g. FORTRAN 66, BASIC) for decades. So why the ???? marks? Many assembler languages also use return for exit from a subroutine (sometimes the mnemonic is RTS - return from subroutine, sometimes it is RETURN or RET), but the terminology is the same nevertheless. Maybe it would be a good idea to learn a bit about programming history ..... (Note also that it is possible to exit from an Ada main program using return, since an Ada main program is a procedure.) Steve Sangwine