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: 103376,74bc23dcb20218db X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!138.195.8.3.MISMATCH!news.ecp.fr!news.jacob-sparre.dk!pnx.dk!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: How to access this package written in C? Date: Mon, 26 Apr 2010 20:31:15 -0500 Organization: Jacob Sparre Andersen Message-ID: References: <4e9d2aaf-c0a6-4798-b838-8f5b7c4a39d1@k33g2000yqc.googlegroups.com> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1272331877 6498 69.95.181.76 (27 Apr 2010 01:31:17 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Tue, 27 Apr 2010 01:31:17 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5843 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-RFC2646: Format=Flowed; Original Xref: g2news1.google.com comp.lang.ada:10226 Date: 2010-04-26T20:31:15-05:00 List-Id: "Robert A Duff" wrote in message news:wcceii1g308.fsf@shell01.TheWorld.com... > Keith Thompson writes: ... >> The document I'm looking at is "Ada Reference Manual, ISO/IEC >> 8652:2007(E) Ed. 3", "ISO/IEC 8652:1995(E) with Technical Corrigendum 1 >> and Amendment 1". Is that the most current version? > > No. The most current standard is here: > > http://www.ada-auth.org/ Actually, the title Keith gives is that of the most recent "official" consolidated edition. And the on-line versions of the Ada 2005 stuff are found in http://www.adaic.org/standards/ada05.html (You can get the source and tools for generating the standard from www.ada-auth.org, but that is something that very few people need.) > after you rummage aroung a bit. Look for the Ada 2005 version. The > most current future to-be-standardized version (for Ada 2012) is here: > > http://www.adaic.org/standards/ada1z.html > > Note that this one has no official ISO status yet. Note that the above URL is going to change drastically when the next draft version is posted (probably next week). It is going to move to www.ada-auth.org and will be named Ada 2012 (instead of the "1z"). I'll try to maintain some sort of forwarding, but it is best to change you bookmarks then. So to sum up, Bob got it exactly backwards. ;-) ... >> There's no need for nul, wide_nul, and char32_nul to be >> implementation-defined; they're all zero by definition: >> >> nul : constant char := char'val(0); >> ... >> wide_nul : constant wchar_t := wchar_t'val(0); >> ... >> char32_nul : constant char32_t := char32_t'val(0); > > Yes, I think that makes sense. See also AI95-00037. > >> C doesn't actually have a type corresponding to char32_t; it has >> wchar_t, but its size is implementation-defined. I believe that the char16 and char32 types were to match some proposed C update; not sure if that was ever adopted. Ah, here's what AI95-00285-1 has to say on the subject: -- SC22/WG14 is planning to include support for Unicode 16- and 32-bit characters -- in C. Their proposal is presented in ISO/IEC TR 19769:2004 -- (http://www.open-std.org/jtc1/sc22//WG14/www/docs/n1040.pdf). In order to -- provide compatibility with the upcoming C standard, new types are added to -- Interfaces.C that correspond to C char16_t and char32_t. It is recognized that -- adding new declarations to predefined units can cause incompatibilities, but it -- is thought that the new identifiers are unlikely to conflict with existing -- code. We may have jumped the gun on adding these, but as Bob noted, we're not going to remove them as the incompatibility would be significant and it's harmless to have them. Randy.