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,174ec7dc941a1068 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!nuzba.szn.dk!news.jacob-sparre.dk!pnx.dk!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Factory Pattern Date: Thu, 26 Jul 2007 17:31:47 -0500 Organization: Jacob's private Usenet server Message-ID: References: <1185387571.367570.163160@r34g2000hsd.googlegroups.com> <1185432247.046242.24300@o61g2000hsh.googlegroups.com> <1185439242.28126.36.camel@kartoffel> <1185447702.28126.57.camel@kartoffel> <1185454958.105983.143570@l70g2000hse.googlegroups.com> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: jacob-sparre.dk 1185488966 27448 69.95.181.76 (26 Jul 2007 22:29:26 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Thu, 26 Jul 2007 22:29:26 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1807 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1896 Xref: g2news2.google.com comp.lang.ada:1213 Date: 2007-07-26T17:31:47-05:00 List-Id: "Maciej Sobczak" wrote in message news:1185454958.105983.143570@l70g2000hse.googlegroups.com... ... > In the case-insensitive programming language I would > expect that changing the "case" of one character in the identifier > will not change its semantics. How Ada guarantees this for Unicode? It uses the Unicode-defined case mapping tables. And yes, this can change the length of things. So what? We used the Unicode-defined tables because that way we let the experts in these scripts make the decisions, not us language designers. If you really care how these things are defined, check out the standard clauses 2.1 and 2.3: http://www.adaic.com/standards/05rm/html/RM-2-1.html http://www.adaic.com/standards/05rm/html/RM-2-3.html 2.3(5-5.3/2) defines how identifiers are compared for equality; 2.1 defines the various character categories. The wording is more obtuse that we would have liked because we couldn't reference Unicode normatively (it is not an ISO standard). > Or maybe is Ada case-insensitive only in the ASCII subset of Unicode? No, Ada is case-insensitive across the entire range of Unicode characters. > Sorry, I don't call it "well-designed". Well, that's your choice, but it would be better informed if you understood the rules in question first. Randy.