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,FREEMAIL_FROM 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 09:09:17 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.stueberl.de!newsfeed.freenet.de!news.freenet.de!not-for-mail From: Jan Prazak Subject: Re: exit from a procedure Date: Mon, 15 Jul 2002 18:10:32 -0100 Newsgroups: comp.lang.ada Message-ID: References: <3d32bb2d.14256746@news.essex.ac.uk> User-Agent: Pan/0.11.2 (Unix) Mime-Version: 1.0 Content-Type: text/plain; charset=iso885915 Content-Transfer-Encoding: 8bit X-Comment-To: "Steve Sangwine" NNTP-Posting-Host: 213.7.143.109 X-Trace: 1026749355 news.freenet.de 32672 213.7.143.109 X-Complaints-To: abuse@freenet.de Xref: archiver1.google.com comp.lang.ada:27113 Date: 2002-07-15T18:10:32-01:00 List-Id: On Mon, 15 Jul 2002 11:14:26 -0100, Steve Sangwine wrote: > 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? Because "return" is used in Ada for returning a value from a function, so using the same keyword in a procedure looks strange. But there it's of course without a value. But it's ok now, now I understand that "return" in a procedure doesn't mean "return a value", but just "return" in the meaning of "go back" to caller. But I think it's clearer in Pascal, there it's "exit" (a loop exit is called "quit" there). > Maybe it would be a good idea to > learn a bit about programming history ..... No, thanks... I don't have the time to learn dead languages, but it could be interesting, indeed (but probably also frustrating, I have seen Towers Of Hanoi in 10 different languages, some of the code had 10 lines (Pascal, C...) and some even 100 lines). Jan