From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Elaboration order handling (Was: Bug in 'gnatmake')
Date: Thu, 20 Jun 2013 16:36:13 -0500
Date: 2013-06-20T16:36:13-05:00 [thread overview]
Message-ID: <kpvskf$mt0$1@loke.gir.dk> (raw)
In-Reply-To: wcc38sd7hch.fsf@shell01.TheWorld.com
"Robert A Duff" <bobduff@shell01.TheWorld.com> wrote in message
news:wcc38sd7hch.fsf@shell01.TheWorld.com...
> "Randy Brukardt" <randy@rrsoftware.com> writes:
...
>> A direct conversion to some specific case doesn't work portably in
>> Unicode
>> (because it depends on what version Unicode you are using, while the
>> case-insensitive compare is guarenteed to work the same in all versions
>> of
>> Unicode).
>
> Wait, are you saying that it's impossible to implement a
> case-insensitive sort in unicode? Such a sort is all that's needed
> here.
Of course not. You could do case-folding on each item, and do an ordered
compare on that. It's well defined, but the ordering might be nonsense for
some particular (natural) language. (Case-folding is designed for
case-insensitive equality compares, the ordering is whatever it is.)
> Anyway, there's some "perfect/enemy/good-enough" thing going on here.
> Even solving the problem for programs that use only plain-old 7-bit ASCII
> would have saved zillions of dollars.
True enough. It's unfortunate that the GNAT solution wasn't thought of much
sooner, nor that we can't seem to find a compatible solution. (But I don't
think anyone has really tried, either, I don't think this particular issue
has ever been on the ARG's agenda.)
>> The net effect is that ordering is not very reliable in case-insensitive
>> Unicode identifiers, like Ada's. Cool, huh?
>
> Bleah.
Yeah, Unicode brings its own problems, which are often ignored by its
proponents. I personally think that programming languages (as opposed to
program input/output) should stick to 7-bit ASCII, but of course that's
never been politically possible.
Randy.
next prev parent reply other threads:[~2013-06-20 21:36 UTC|newest]
Thread overview: 57+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-17 10:57 Range check for type 'Integer' Peter Brooks
2013-06-17 11:23 ` Simon Clubley
2013-06-17 11:54 ` Simon Wright
2013-06-17 12:55 ` Peter Brooks
2013-06-17 13:28 ` Shark8
2013-06-17 13:45 ` Peter Brooks
2013-06-17 21:16 ` Shark8
2013-06-18 10:48 ` Stephen Leake
2013-06-17 12:46 ` Dmitry A. Kazakov
2013-06-17 13:23 ` Bug in 'gnatmake' (Was: Range check for type 'Integer') Jacob Sparre Andersen
2013-06-17 13:32 ` Bug in 'gnatmake' Jacob Sparre Andersen
2013-06-17 16:50 ` Bug in 'gnatmake' (Was: Range check for type 'Integer') Robert A Duff
2013-06-17 19:15 ` Peter Brooks
2013-06-17 21:09 ` Shark8
2013-06-17 21:22 ` Jeffrey Carter
2013-06-18 1:21 ` Peter Brooks
2013-06-18 6:33 ` Jeffrey Carter
2013-06-18 7:29 ` Georg Bauhaus
2013-06-17 18:49 ` Bug in 'gnatmake' Simon Wright
2013-06-18 9:09 ` Elaboration order handling (Was: Bug in 'gnatmake') Jacob Sparre Andersen
2013-06-18 17:09 ` Robert A Duff
2013-06-18 22:52 ` Adam Beneschan
2013-06-19 1:21 ` Jeffrey Carter
2013-06-19 12:38 ` Robert A Duff
2013-06-19 20:43 ` Georg Bauhaus
2013-06-20 0:37 ` Robert A Duff
2013-06-20 19:56 ` Georg Bauhaus
2013-06-19 12:22 ` Robert A Duff
2013-06-19 15:46 ` Adam Beneschan
2013-06-19 16:41 ` Robert A Duff
2013-06-19 20:47 ` Georg Bauhaus
2013-06-19 21:36 ` Adam Beneschan
2013-06-20 0:57 ` Robert A Duff
2013-06-20 1:09 ` Jeffrey Carter
2013-06-20 2:29 ` Adam Beneschan
2013-06-20 6:08 ` Jeffrey Carter
2013-06-20 15:11 ` Robert A Duff
2013-06-21 5:26 ` Jeffrey Carter
2013-06-21 15:48 ` Adam Beneschan
2013-06-21 18:35 ` Jeffrey Carter
2013-06-21 19:10 ` Robert A Duff
2013-06-21 21:27 ` Jeffrey Carter
2013-06-21 20:43 ` Adam Beneschan
2013-06-21 21:44 ` Jeffrey Carter
2013-06-21 23:47 ` Robert A Duff
2013-06-23 14:43 ` AdaMagica
2013-06-21 18:58 ` null declarative parts (was: Re: Elaboration order handling) Robert A Duff
2013-06-21 20:42 ` null declarative parts Georg Bauhaus
2013-06-20 2:11 ` Elaboration order handling (Was: Bug in 'gnatmake') Adam Beneschan
2013-06-20 14:44 ` Robert A Duff
2013-06-20 11:24 ` G.B.
2013-06-20 15:23 ` Robert A Duff
2013-06-19 21:00 ` Georg Bauhaus
2013-06-19 22:26 ` Randy Brukardt
2013-06-20 0:31 ` Robert A Duff
2013-06-20 21:36 ` Randy Brukardt [this message]
2013-06-19 13:07 ` Bill Findlay
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox