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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,334f9012742e58fc X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!feeder.news-service.com!feed.xsnews.nl!border-1.ams.xsnews.nl!news.netcologne.de!ramfeed1.netcologne.de!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Gnat GPL 2010 available soon Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <2010061621145016807-sjs@essexacuk> <0fa4c574-9539-492f-8514-d32c68beb22a@w31g2000yqb.googlegroups.com> Date: Sat, 26 Jun 2010 23:42:55 +0200 Message-ID: <1frrgtpa5dycl$.12kl72iqsg3dx$.dlg@40tude.net> NNTP-Posting-Date: 26 Jun 2010 23:42:56 CEST NNTP-Posting-Host: 33d38cc9.newsspool1.arcor-online.net X-Trace: DXC=;OLDU46Snk6n`gW2MTm]<3ic==]BZ:af>4Fo<]lROoR1<`=YMgDjhg2niX0T=6Vh`8[6LHn;2LCV>[;DXj=H\mY?K On Sat, 26 Jun 2010 05:04:10 -0700 (PDT), lekktu@gmail.com wrote: > Well, it hasn't been hard to find the first bug. > > -------------------------------------------------------------------------------- > function Validate (Dir : in String) return String is > begin > return (if Dir (Dir'Last) = '\' then Dir else Dir & '\'); > end Validate; > -------------------------------------------------------------------------------- [...] > I'll submit a bug report. (Yes, to remove that abomination from the language! (:-)) I didn't read the AI, but your code looks very strange to me. Isn't its syntax exposed to the infamous Pascal-if flaw? I mean, where is the "end if"? Is this legal: (if A then X else if B then Y else Z) P.S. Is case allowed too? P.P.S. Didn't they forget the return statement? It would be great "fun" to write and read this: if return X : Boolean do declare ... begin ... end: end return; then ... if; -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de