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,a84eaf8fb2470909 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.megapath.net!news.megapath.net.POSTED!not-for-mail NNTP-Posting-Date: Thu, 04 Jan 2007 19:31:39 -0600 From: "Randy Brukardt" Newsgroups: comp.lang.ada References: <1166710494.869393.108730@a3g2000cwd.googlegroups.com> <17fe4xfogg7p5.1dcyc5nyc2gsl.dlg@40tude.net> <1166805696.291429.239590@48g2000cwx.googlegroups.com> <186qujlcx6rwl.1h6eq4mbdaa5s$.dlg@40tude.net> <1167150212.165097.289010@73g2000cwn.googlegroups.com> <1qmdvus6du3xu.1n21tzgev46ia$.dlg@40tude.net> <1167246396.057028.325080@48g2000cwx.googlegroups.com> <15jxp8z1iu5fk.1oeihvavjghgg$.dlg@40tude.net> <1167327306.22163.66.camel@localhost> <1on3cinnnckc5.1rxxvjhxs5qzl.dlg@40tude.net> <1a9k0vk46bqrq.1cx6cdld0wd9f$.dlg@40tude.net> <67adnc2Fg68OzgHYnZ2dnUVZ_rylnZ2d@megapath.net> Subject: Re: Ada generics Date: Thu, 4 Jan 2007 19:32:26 -0600 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.1807 Message-ID: NNTP-Posting-Host: 64.32.209.38 X-Trace: sv3-QfuaGUqb8ZcsMnndqKG5A8mSHT0Fyts9iSAT+GCNMftXpdmM5coXGz8/zhC6dA1zLWAxu0aUlmNGAC4!SMJn7raZJ9ok++hB3LTG/DyYY1cSvmWCcV4yIRJY2ZlamGNxsPxeB229jACNd0BG30vLH/2ufUrr!wPKgHn9t9BFLWA== X-Complaints-To: abuse@megapath.net X-DMCA-Complaints-To: abuse@megapath.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news2.google.com comp.lang.ada:8074 Date: 2007-01-04T19:32:26-06:00 List-Id: "Dmitry A. Kazakov" wrote in message news:p6pjtv7qcu1s.vpcba1tkhwba$.dlg@40tude.net... > On Wed, 3 Jan 2007 19:09:17 -0600, Randy Brukardt wrote: > > > "Dmitry A. Kazakov" wrote in message > > news:1a9k0vk46bqrq.1cx6cdld0wd9f$.dlg@40tude.net... > > >> Yuck. Would "acce?" with Greek beta (?) and "if" with Cyrillic ? in it be > >> valid identifiers? > > > > Sure, the upper case of a Greek beta is still a Greek beta, it's not "SS" > > (and doesn't look anything like "ss", either). I don't know much about > > Cyrillic, so I don't know the answer to that (but I suspect you do). > > My God. A good third of the Latin and Cyrillic glyphs are same. Practically > all vowels are. That means that *any* reserved word of Ada can be spelt as > a proper identifier! Yes, and so what? There would be little ambiguity introduced by using (say) "overriding" as an identifier, so the meaning would be obvious to the reader, and it won't confuse the compiler (usually it's more confusing to the writer who didn't remember that some word is reserved). There are some of them that should be avoided, of course, but there aren't many of those. However, you alluded to a real concern in another message. That is, it's possible to write two different identifiers that look the same. That would be confusing and possibly cause problems. But that's already possible (depending on the font), so it just is a slight expansion of a problem that already exists. And it certainly can be handled with style checkers (identifiers containing mixes of Latin, Cyrillic, or Greek characters are suspicious, as are identifiers differing only by the replacement of Latin characters with Cyrillic equivalents). If that is a real concern, just insist that all of your programs are edited with a 1984-vintage MS-DOS editor (like I do ;-), and you won't possibly be able to have a problem. Indeed, I expect most programmers will continue to do this (use tools that don't support Unicode), so any new problems will be limited. > (and of course, there is no any chance to reverse this nightmare...) I don't see a nightmare, but I do see a need to have decent style rules around the writing of identifiers. That's necessary even in Ada 83, they're just more complex now. Randy.