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=unavailable autolearn_force=no version=3.4.4 Path: border1.nntp.ams.giganews.com!nntp.giganews.com!feeder.erje.net!eu.feeder.erje.net!nuzba.szn.dk!news.jacob-sparre.dk!loke.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Elaboration order handling (Was: Bug in 'gnatmake') Date: Thu, 20 Jun 2013 16:36:13 -0500 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <7f33982d-3bcf-452e-a3b3-3a0a28505ff1@x20g2000vbe.googlegroups.com> <87r4g0g9c0.fsf@adaheads.sparre-andersen.dk> <87ip1bg4z2.fsf_-_@adaheads.sparre-andersen.dk> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: loke.gir.dk 1371764176 23456 69.95.181.76 (20 Jun 2013 21:36:16 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Thu, 20 Jun 2013 21:36:16 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Xref: number.nntp.dca.giganews.com comp.lang.ada:181990 Date: 2013-06-20T16:36:13-05:00 List-Id: "Robert A Duff" wrote in message news:wcc38sd7hch.fsf@shell01.TheWorld.com... > "Randy Brukardt" 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.