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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,2e6723b897ab47fb,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.205.126.4 with SMTP id gu4mr2088224bkc.8.1344271547606; Mon, 06 Aug 2012 09:45:47 -0700 (PDT) Path: m12ni76805bkm.0!nntp.google.com!news1.google.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Marius Amado-Alves Newsgroups: comp.lang.ada Subject: Ada.Locales pseudo-string types Date: Mon, 6 Aug 2012 09:45:46 -0700 (PDT) Organization: http://groups.google.com Message-ID: <78707b6e-88a3-453a-a37c-840f7a62e703@googlegroups.com> NNTP-Posting-Host: 188.82.45.163 Mime-Version: 1.0 X-Trace: posting.google.com 1344271547 738 127.0.0.1 (6 Aug 2012 16:45:47 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 6 Aug 2012 16:45:47 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=188.82.45.163; posting-account=3cDqWgoAAAAZXc8D3pDqwa77IryJ2nnY User-Agent: G2/1.0 Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-08-06T09:45:46-07:00 List-Id: Ada 2012 has this new Ada.Locales package (annex A.19) containing type Language_Code is array (1 .. 3) of Character range 'a' .. 'z'; type Country_Code is array (1 .. 2) of Character range 'A' .. 'Z'; Language_Unknown : constant Language_Code := "und"; Country_Unknown : constant Country_Code := "ZZ"; function Language return Language_Code; function Country return Country_Code; Now how does one print the darn codes? Should not Ada.Text_IO.Put for String work? Should not the types be convertible to String? Thanks a lot.