From: Adam Beneschan <adam@irvine.com>
Subject: Re: extended membership tests (branch)
Date: Thu, 31 Mar 2011 11:54:12 -0700 (PDT)
Date: 2011-03-31T11:54:12-07:00 [thread overview]
Message-ID: <247eef65-9ff3-4268-af73-e74d092c1e82@k10g2000prh.googlegroups.com> (raw)
In-Reply-To: 4d94aba4$0$7656$9b4e6d93@newsspool1.arcor-online.net
On Mar 31, 9:28 am, Georg Bauhaus <rm.dash-bauh...@futureapps.de>
wrote:
> On 31.03.11 16:33, Robert A Duff wrote:
>
> > Dan <d...@irvine.com> writes:
>
> >> Here's a fun quiz to test your Ada2012 knowledge, based on an
> >> observation by Yannick Moy.
>
> > I won't answer, because I was involved in the discussion with Yannick.
>
> I can't answer, but started wondering how this will
> have to be interpreted:
>
> for b in b1 in b1 .. b1 loop
> null;
> end loop;
See AARM 3.5(3.a). "for b in" has to be followed by either a subtype
name, a 'Range attribute, or two "simple expressions" with .. between
them. In the last case, the bounds must be "simple expressions", not
general expressions. The syntax of simple_expressions doesn't allow
membership tests (except in parentheses). So the above is illegal.
This rule has been there since Ada 95.
-- Adam
next prev parent reply other threads:[~2011-03-31 18:54 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-31 7:04 extended membership tests Dan
2011-03-31 7:34 ` AdaMagica
2011-03-31 7:55 ` Dan
2011-03-31 7:58 ` Dan
2011-03-31 8:05 ` Ludovic Brenta
2011-03-31 9:28 ` AdaMagica
2011-03-31 14:33 ` Robert A Duff
2011-03-31 16:28 ` extended membership tests (branch) Georg Bauhaus
2011-03-31 17:58 ` Robert A Duff
2011-03-31 18:54 ` Adam Beneschan [this message]
2011-03-31 21:08 ` Georg Bauhaus
2011-03-31 21:10 ` Randy Brukardt
2011-04-01 5:14 ` extended membership tests AdaMagica
2011-04-01 6:33 ` Dan
2011-04-01 7:03 ` AdaMagica
2011-04-01 9:56 ` stefan-lucks
2011-04-01 15:11 ` Adam Beneschan
2011-04-02 1:22 ` 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