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.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA 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,UTF8 Received: by 10.68.25.168 with SMTP id d8mr2192485pbg.4.1318932608562; Tue, 18 Oct 2011 03:10:08 -0700 (PDT) Path: d5ni26437pbc.0!nntp.google.com!news2.google.com!news1.google.com!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: Why no Ada.Wide_Directories? Date: Tue, 18 Oct 2011 12:10:05 +0200 Organization: A noiseless patient Spider Message-ID: References: <9937871.172.1318575525468.JavaMail.geo-discussion-forums@prib32> <418b8140-fafb-442f-b91c-e22cc47f8adb@y22g2000pri.googlegroups.com> Mime-Version: 1.0 Injection-Date: Tue, 18 Oct 2011 10:10:04 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="DIbiIG7RXiF4eLofORV6GQ"; logging-data="645"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19VM1/7ocG6pVn9QDhEqylq" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 In-Reply-To: Cancel-Lock: sha1:jngXwsaTsd2UFSBX1khuZ6RNh/s= Xref: news2.google.com comp.lang.ada:14034 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: 2011-10-18T12:10:05+02:00 List-Id: Le 18/10/2011 04:59, Yannick Duchêne (Hibou57) a écrit : > I feel it is more an > implementation trick (which was indeed intended by the design of UTF-8 > targeting some hardly solvable context), than a clean formalization. It is not (says the one who wrote the AI). The issue of using String or a different type was carefully investigated, and String was chosen mainly on the ground of usability (f.e., when you read from a text file, you don't know if it is encoded or not until you have read the BOM - would you read the BOM into a String or an Encoded_String?) This appears in the !discussion section of AI AI05-0137-1/05 Note that the AI carefully talks about "characters whose position numbers correspond to the encoding". An encoding is a way to store a character string in a more compact manner, but it still represents a string of characters. Compare that with packed arrays - that does not change the high level nature of the array. -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Adalog a déménagé / Adalog has moved: 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00