comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Factory Pattern
Date: Thu, 26 Jul 2007 17:31:47 -0500
Date: 2007-07-26T17:31:47-05:00	[thread overview]
Message-ID: <f8b786$qpo$1@jacob-sparre.dk> (raw)
In-Reply-To: 1185454958.105983.143570@l70g2000hse.googlegroups.com

"Maciej Sobczak" <see.my.homepage@gmail.com> 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.





  parent reply	other threads:[~2007-07-26 22:31 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-25 18:19 Factory Pattern shaunpatterson
2007-07-25 18:28 ` Martin
2007-07-25 18:51 ` Dmitry A. Kazakov
2007-07-25 21:06   ` Georg Bauhaus
2007-07-25 19:27 ` Matthew Heaney
2007-07-26  0:51 ` Jeffrey R. Carter
2007-07-26  6:44   ` Maciej Sobczak
2007-07-26  8:40     ` Georg Bauhaus
2007-07-26  9:53       ` Dmitry A. Kazakov
2007-07-26 11:01         ` Georg Bauhaus
2007-07-26 13:02           ` Maciej Sobczak
2007-07-26 13:44             ` Dmitry A. Kazakov
2007-07-26 14:58             ` Georg Bauhaus
2007-07-26 22:31             ` Randy Brukardt [this message]
2007-07-27 13:07               ` Maciej Sobczak
2007-07-27 14:23                 ` shaunpatterson
2007-07-27 22:23                 ` Randy Brukardt
2007-07-28 18:56                   ` Maciej Sobczak
2007-07-29  7:54                   ` Maciej Sobczak
2007-07-29  8:53                     ` Dmitry A. Kazakov
2007-07-29 10:53                     ` Georg Bauhaus
2007-07-26 16:58         ` Adam Beneschan
2007-07-29 11:38         ` Manuel Gomez
2007-07-27 10:16     ` Jeffrey R. Carter
2007-07-27 12:47       ` Maciej Sobczak
2007-08-26  7:18         ` David Thompson
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox