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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no 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!postnews.google.com!w3g2000hsg.googlegroups.com!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Re: Factory Pattern Date: Sun, 29 Jul 2007 00:54:34 -0700 Organization: http://groups.google.com Message-ID: <1185695674.206091.43870@w3g2000hsg.googlegroups.com> 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> <1185541668.089363.258220@q75g2000hsh.googlegroups.com> NNTP-Posting-Host: 85.3.201.28 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: posting.google.com 1185695674 11823 127.0.0.1 (29 Jul 2007 07:54:34 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 29 Jul 2007 07:54:34 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.5) Gecko/20070713 Firefox/2.0.0.5,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: w3g2000hsg.googlegroups.com; posting-host=85.3.201.28; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Xref: g2news2.google.com comp.lang.ada:1258 Date: 2007-07-29T00:54:34-07:00 List-Id: On 28 Lip, 00:23, "Randy Brukardt" wrote: > (New standards for other languages also will have to add > this sort of support, or take their chances at having their standards fail.) When I think about it more, I cannot even believe it might be true. Consider... C. It has the ISO standard and surely will be revised. One of the things that are taken for granted in the whole industry is the fact that C names are immediately "extern" without any further tweaking. Thanks to this you can write pragma Import (C, Puts, "puts"); and gain access to the standard puts function in C. Or any other. *Every* programming language that is even remotely useful uses this fact and relies on it. Now imagine that C introduces support for Unicode in names. In order to reuse the whole existing infrastructure of binary utilities (the tradition that is hard to drop) it would be necessary to introduce name mangling that will translate Unicode identifiers into something a typical linker can understand. But that will not be standardized, leading to complete mess. The alternative would be to require that the whole world starts to understand Unicode in symbol names for linking and import/export. The implications for the industry would be disastrous. My humble opinion: there will be no Unicode allowed for C identifiers and the binary symbol names will stay Latin1 (or even a subset of it) till the end of the world as we know it. This means that ISO cannot have any reasonable mandate to enforce Unicode support on other languages without the risk of undermining its credibility by being inconsistent. Am I missing something? -- Maciej Sobczak http://www.msobczak.com/