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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,5bcc293dc5642650 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.35.68 with SMTP id f4mr11812823pbj.5.1319202835356; Fri, 21 Oct 2011 06:13:55 -0700 (PDT) Path: d5ni39621pbc.0!nntp.google.com!news2.google.com!news4.google.com!feeder.news-service.com!feeder.news-service.com!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Why no Ada.Wide_Directories? Date: Fri, 21 Oct 2011 15:13:54 +0200 Organization: cbb software GmbH Message-ID: References: <9937871.172.1318575525468.JavaMail.geo-discussion-forums@prib32> <418b8140-fafb-442f-b91c-e22cc47f8adb@y22g2000pri.googlegroups.com> <7156122c-b63f-487e-ad1b-0edcc6694a7a@u10g2000prl.googlegroups.com> <409c81ab-bd54-493b-beb4-a0cca99ec306@p27g2000prp.googlegroups.com> <4d97ced2-1695-4352-926c-2070f9ccbbf1@o19g2000vbk.googlegroups.com> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: NkTZyZQzt+uRNthfI6+Hjg.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news2.google.com comp.lang.ada:14128 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2011-10-21T15:13:54+02:00 List-Id: On Fri, 21 Oct 2011 13:25:39 +0200, J-P. Rosen wrote: > But that is exactly what Wide_Wide_String is! Not really. Wide_Wide_String is one possible implementation of logical Unicode string. There can be other implementations, e.g. String, Wide_String, UTF8_String, UTF16_String, EBCDIC_String, ASCII_String... All these implementation must be interchangeable and implement same logical string interface. The same applies to unbouded and fixed length strings. > Come on! That's ultra-purism that brings zero improvement in practice. On the contrary: 1. It would reduce by the factor 10 the number of packages; 2. It would statically ensure that the encoding is handled correctly. (I would bet that almost any Ada program is broken with that regard); 3. It would free the programmer from the burden of premature optimization; 4. It would make design of Ada bindings much simpler and safer. E.g. C_String could be an implementation of logical Unicode string compatible with null-terminated C strings. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de