From: Robert A Duff <bobduff@TheWorld.com>
Subject: Re: Peculiarities of "of" syntax
Date: Sat, 11 Jan 2020 16:45:07 -0500
Date: 2020-01-11T16:45:07-05:00 [thread overview]
Message-ID: <wccy2udzmzg.fsf@shell02.theworld.com> (raw)
In-Reply-To: qvd2p1$psk$1@dont-email.me
"Alejandro R. Mosteo" <alejandro@mosteo.com> 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
next prev parent reply other threads:[~2020-01-11 21:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-11 18:05 Peculiarities of "of" syntax Alejandro R. Mosteo
2020-01-11 20:25 ` Jeffrey R. Carter
2020-01-11 21:45 ` Robert A Duff [this message]
2020-01-12 1:38 ` Alejandro R. Mosteo
2020-01-12 2:01 ` Robert A Duff
2020-01-12 11:27 ` Simon Wright
2020-01-13 23:32 ` Randy Brukardt
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox