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=0.2 required=5.0 tests=BAYES_00,REPLYTO_WITHOUT_TO_CC, SUBJ_ALL_CAPS autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,81080984e3a87d27 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-02-22 19:27:36 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!hub.org!hub.org!newsfeed.direct.ca!look.ca!newsfeed1.earthlink.net!newsfeed2.earthlink.net!newsfeed.earthlink.net!news.mindspring.net!not-for-mail From: Lao Xiao Hai Newsgroups: comp.lang.ada Subject: Re: HOW TO FIX THIS IN ADA? Date: Thu, 22 Feb 2001 19:22:57 -0800 Organization: AdaWorks Software Engineering Message-ID: <3A95D791.98C7EB97@ix.netcom.com> References: <6Izk6.161065$Pm2.3005370@news20.bellglobal.com> <3A949947.52E9B5F4@ix.netcom.com> Reply-To: richard@adaworks.com NNTP-Posting-Host: 3f.35.b3.c9 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Server-Date: 23 Feb 2001 03:25:17 GMT X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en Xref: supernews.google.com comp.lang.ada:5452 Date: 2001-02-23T03:25:17+00:00 List-Id: Pascal Obry wrote: > Lao Xiao Hai writes: > > > Well, on first glance at this code, it is clear it will never compile. > > Unless > > I am not reading it correctly, there is a missing return statement in > > the function. > > No, in Pascal you just assign a value to the function. Correct. I did not read the code carefully enough to notice that it was not really Ada. All I did was scan quickly for the return statement. OTOH, closer look at this makes the whole question more bewildering than when I was doing a cursory look. Richard Riehle