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,e859f774bbb3dfb3 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!wns13feed!worldnet.att.net!attbi_s22.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: another way to shoot yourself in the foot? References: <54157920-377a-441b-9b0b-f0c4f9ddffec@f36g2000hsa.googlegroups.com> <54435596-5e7f-4686-a2b7-1e22d7c4b186@p25g2000hsf.googlegroups.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s22 1214169927 12.201.97.213 (Sun, 22 Jun 2008 21:25:27 GMT) NNTP-Posting-Date: Sun, 22 Jun 2008 21:25:27 GMT Organization: AT&T ASP.att.net Date: Sun, 22 Jun 2008 21:25:27 GMT Xref: g2news1.google.com comp.lang.ada:809 Date: 2008-06-22T21:25:27+00:00 List-Id: Robert A Duff wrote: > > I actually advocated something along those lines. > I think it has (probably-solvable) problems, too. > If you're curious, look up the relevant AI. Might be worth the effort. > As Dmitry pointed out, with this idea, there's no need for the "return > Result;". True, but I find it easier to understand the function if it has the explicit "return Result;", even though I came to Ada from a Pascal background. -- Jeff Carter "Blessed are they who convert their neighbors' oxen, for they shall inhibit their girth." Monty Python's Life of Brian 83