From: Adam Beneschan <adam@irvine.com>
Subject: Re: pragma Pure (Ada)
Date: Fri, 30 Sep 2011 20:09:19 -0700 (PDT)
Date: 2011-09-30T20:09:19-07:00 [thread overview]
Message-ID: <680ee5ee-85c2-4d7a-901b-528a7d0db8a3@18g2000yqz.googlegroups.com> (raw)
In-Reply-To: op.v2ngqmo3ule2fv@index.ici
On Sep 30, 6:50 pm, Yannick Duchêne (Hibou57)
<yannick_duch...@yahoo.fr> wrote:
> In “A Brief Introduction to Ada 2012” (a great paper from John Barnes) ->http://www2.adacore.com/wp-content/uploads/2006/03/Ada2012_Rational_I...
>
> On page 12, you may read
>
> > Ada 95 introduced the package Ada thus
> > package Ada is
> > pragma Pure(Ada);
> > end Ada;
> > However, a close reading of the RM revealed that poor Ada
> > is illegal since the pragma Pure is not in one of the allowed
> > places for a pragma.
>
> Does that mean that this was really illegal from strict layers point of
> view ? So GNAT was hacked ?
It's not fair to say GNAT was hacked. Everybody knew that this code
was supposed to be legal. It's just it was illegal according to a
literal reading of the RM rules that nobody noticed until I think I
discovered it while I was trying to look over the rules carefully to
answer a different question. So the RM rules were clearly worded
wrong and had to be changed.
-- Adam
prev parent reply other threads:[~2011-10-01 3:24 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-01 1:50 pragma Pure (Ada) Yannick Duchêne (Hibou57)
2011-10-01 2:11 ` Yannick Duchêne (Hibou57)
2011-10-08 1:37 ` Adam Beneschan
2011-10-08 22:54 ` Yannick Duchêne (Hibou57)
2011-10-09 6:34 ` Niklas Holsti
2011-10-10 15:06 ` Adam Beneschan
2011-10-01 2:28 ` Yannick Duchêne (Hibou57)
2011-10-08 1:08 ` Randy Brukardt
2011-10-08 23:00 ` Yannick Duchêne (Hibou57)
2011-10-01 3:09 ` Adam Beneschan [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox