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-Thread: 103376,132a17fa42920218 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!proxad.net!newsfeed.stueberl.de!news-mue1.dfn.de!news-ham1.dfn.de!news.uni-hamburg.de!cs.tu-berlin.de!uni-duisburg.de!not-for-mail From: Georg Bauhaus Newsgroups: comp.lang.ada Subject: Re: procedures and return Date: Mon, 16 Aug 2004 09:50:23 +0000 (UTC) Organization: GMUGHDU Message-ID: References: <412052f5$1@dnews.tpgi.com.au> NNTP-Posting-Host: l1-hrz.uni-duisburg.de X-Trace: a1-hrz.uni-duisburg.de 1092649823 14135 134.91.1.34 (16 Aug 2004 09:50:23 GMT) X-Complaints-To: usenet@news.uni-duisburg.de NNTP-Posting-Date: Mon, 16 Aug 2004 09:50:23 +0000 (UTC) User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (HP-UX/B.11.00 (9000/800)) Xref: g2news1.google.com comp.lang.ada:2750 Date: 2004-08-16T09:50:23+00:00 List-Id: zork wrote: : : procedure my_procedure (...) is : begin : if then : put("inside if-statement); : new_line; : return; : end if; : put ("outside if-statement"); : end my_procedure; There are only two Boolean values. You can try to write a procedure like the above with very little changes so it can be compiled as a main program. Use True for one compilation, False for another, and see what happens. Anything but return on "return" should be very surprising. Are you sure that "outside if-statement" is uttered by my_procedure and not from somewhere else? Georg