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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!maths.tcd.ie!newsswitch.lcs.mit.edu!nntp.TheWorld.com!.POSTED!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Peculiarities of "of" syntax Date: Sat, 11 Jan 2020 16:45:07 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: NNTP-Posting-Host: shell02.theworld.com Mime-Version: 1.0 Content-Type: text/plain X-Trace: pcls7.std.com 1578779107 10142 192.74.137.72 (11 Jan 2020 21:45:07 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Sat, 11 Jan 2020 21:45:07 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:wwXeqTzXoIOHitVZkD9FuDf6AVI= Xref: reader01.eternal-september.org comp.lang.ada:57830 Date: 2020-01-11T16:45:07-05:00 List-Id: "Alejandro R. Mosteo" writes: > The following GNAT 2019-rejected examples of iterating with the new "of" > are giving me some pause if this is an oversight in the feature, a bug > in the compiler, or actually intended for some good reason: The syntax rules require a name after "of", and neither "Arr & Arr" nor "(Arr & Arr)" are names. The reason it didn't catch the incorrect "others" is that GNAT doesn't run semantic analysis if there are syntax errors (but there's a switch to make it do so). - Bob