comp.lang.ada
 help / color / mirror / Atom feed
From: Martin <martin.dowie@btopenworld.com>
Subject: Re: Ada extension information
Date: Thu, 28 May 2009 11:30:58 -0700 (PDT)
Date: 2009-05-28T11:30:58-07:00	[thread overview]
Message-ID: <0d9fe71d-788c-46b0-8c5b-18bd229d7246@r3g2000vbp.googlegroups.com> (raw)
In-Reply-To: d784432e-fa9d-4bc9-b849-ecb2208afc73@c9g2000yqm.googlegroups.com

On May 28, 7:26 pm, i...@midoan.com wrote:
> Hello,
> a-textio.adb released with GNAT 2009 GPL for windows, contains:
>
> Item :=
>               (if not Is_Start_Of_Encoding (Character'Val (ch),
> File.WC_Method)
>                then Character'Val (ch)
>                else Get_Upper_Half_Char_Immed (Character'Val (ch),
> File));
>
> which is easy enough to understand but is not standard Ada.
>
> GNAT 2009 tells me :
>
> try.adb:5:09: conditional expression is an Ada extension
> try.adb:5:09: use -gnatX switch to compile this unit
>
> http://www.adacore.com/2009/03/29/NF-63-I317-009-gnat/discusses
> this.
>
> Is it not jumping the gun a little to use these extensions to document
> standard libraries before they become official, or even documented?

Probably not, as there is nothing I know of requires the standard
libraries to be written in Ada, let alone 'vanilla' Ada.

Even if it was in the public part of the specification I guess it
would still be ok if used for something 'implementation-defined'.

Cheers
-- Martin



  reply	other threads:[~2009-05-28 18:30 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-28 18:26 Ada extension information info
2009-05-28 18:30 ` Martin [this message]
2009-05-30  0:25   ` Randy Brukardt
2009-05-28 21:22 ` Georg Bauhaus
2009-05-28 21:31   ` Georg Bauhaus
2009-05-28 22:06   ` Adam Beneschan
2009-05-30  7:13 ` anon
2009-05-30 10:13   ` info
replies disabled

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