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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM 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 Path: g2news2.google.com!postnews.google.com!y11g2000yqm.googlegroups.com!not-for-mail From: "lekktu@gmail.com" Newsgroups: comp.lang.ada Subject: Re: Gnat GPL 2010 available soon Date: Sat, 26 Jun 2010 15:01:27 -0700 (PDT) Organization: http://groups.google.com Message-ID: <13171a20-38ec-49ba-a7e3-ee5885519c0f@y11g2000yqm.googlegroups.com> References: <2010061621145016807-sjs@essexacuk> <0fa4c574-9539-492f-8514-d32c68beb22a@w31g2000yqb.googlegroups.com> <1frrgtpa5dycl$.12kl72iqsg3dx$.dlg@40tude.net> NNTP-Posting-Host: 88.7.204.53 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1277589687 551 127.0.0.1 (26 Jun 2010 22:01:27 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 26 Jun 2010 22:01:27 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: y11g2000yqm.googlegroups.com; posting-host=88.7.204.53; posting-account=R62THAoAAACcBd11BFBbpfyAY2QqVHpy User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.4) Gecko/20100611 Firefox/3.6.4,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:12913 Date: 2010-06-26T15:01:27-07:00 List-Id: On Jun 26, 11:42=A0pm, "Dmitry A. Kazakov" wrote: > (Yes, to remove that abomination from the language! (:-)) I don't like it much, but I don't like if A then V :=3D X; else V :=3D Y; end if; that much either. > 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: > > =A0 =A0(if A then X else if B then Y else Z) Read the AI. IIRC, parenthesis are usually required, so (if A then X else (if B then Y else Z)), but the rules for parenthesis are relaxed in some contexts, like function arguments, so "F (if A then X else Y);" instead of "F ((if A then X else Y));". > P.S. Is case allowed too? I think so, yes. > P.P.S. Didn't they forget the return statement? It would be great "fun" t= o > write and read this: > > =A0 =A0if =A0return X : Boolean do > =A0 =A0 =A0 =A0 =A0 declare > =A0 =A0 =A0 =A0 =A0 =A0 =A0... > =A0 =A0 =A0 =A0 =A0 begin > =A0 =A0 =A0 =A0 =A0 =A0 =A0... > =A0 =A0 =A0 =A0 =A0 end: > =A0 =A0 =A0 end return; > =A0 =A0then > =A0 =A0 =A0 ... > =A0 =A0if; Very funny... sort of.