comp.lang.ada
 help / color / mirror / Atom feed
From: "Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr>
Subject: pragma Pure (Ada)
Date: Sat, 01 Oct 2011 03:50:36 +0200
Date: 2011-10-01T03:50:36+02:00	[thread overview]
Message-ID: <op.v2ngqmo3ule2fv@index.ici> (raw)

In “A Brief Introduction to Ada 2012” (a great paper from John Barnes) ->
http://www2.adacore.com/wp-content/uploads/2006/03/Ada2012_Rational_Introducion.pdf

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 ?

Notice how John Barnes was pleasantly teasing with the wording, as he  
wrote “poor Ada is illegal” instead of “Pure(Ada) is illegal” :-D


-- 
“Syntactic sugar causes cancer of the semi-colons.”  [Epigrams on  
Programming — Alan J. — P. Yale University]
“Structured Programming supports the law of the excluded muddle.” [Idem]
Java: Write once, Never revisit



             reply	other threads:[~2011-10-01  1:50 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-01  1:50 Yannick Duchêne (Hibou57) [this message]
2011-10-01  2:11 ` pragma Pure (Ada) 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
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox