From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,1c5ea9562750d823 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!r3g2000vbp.googlegroups.com!not-for-mail From: Martin Newsgroups: comp.lang.ada Subject: Re: Ada extension information Date: Thu, 28 May 2009 11:30:58 -0700 (PDT) Organization: http://groups.google.com Message-ID: <0d9fe71d-788c-46b0-8c5b-18bd229d7246@r3g2000vbp.googlegroups.com> References: NNTP-Posting-Host: 81.154.95.136 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1243535458 12212 127.0.0.1 (28 May 2009 18:30:58 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 28 May 2009 18:30:58 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: r3g2000vbp.googlegroups.com; posting-host=81.154.95.136; posting-account=g4n69woAAACHKbpceNrvOhHWViIbdQ9G User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.10) Gecko/2009042315 Firefox/3.0.10, Ant.com Toolbar 1.3,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:6083 Date: 2009-05-28T11:30:58-07:00 List-Id: On May 28, 7:26=A0pm, i...@midoan.com wrote: > Hello, > a-textio.adb released with GNAT 2009 GPL for windows, contains: > > Item :=3D > =A0 =A0 =A0 =A0 =A0 =A0 =A0 (if not Is_Start_Of_Encoding (Character'Val (= ch), > File.WC_Method) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0then Character'Val (ch) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0else 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