comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: sharp � and ss in Ada keywords like ACCESS
Date: Tue, 11 Oct 2011 09:36:31 +0200
Date: 2011-10-11T09:36:31+02:00	[thread overview]
Message-ID: <1aopal79s1esa$.dabl84c55g4l$.dlg@40tude.net> (raw)
In-Reply-To: j6vrcf$e3$1@munin.nbi.dk

On Mon, 10 Oct 2011 17:25:17 -0500, Randy Brukardt wrote:

> Also note that even if the conversion was allowed, the identifier "acce�" 
> would be illegal: 2.3(5.3/3) [and the equivalent rule in Ada 2005] makes it 
> illegal to have an identifier that is identical to a reserved word. And 
> reserved words use character-by-character case conversion - any case where 
> the number of characters change is not considered. Since Ada 2012 uses 
> "simple case folding", 2.3(5.3/3) doesn't have any impact, but if it had 
> used "full case folding", it would prevent words like the above.

One still can fool it by using Cyrillic a (0430), c (0441), e (0435).

P.S. Shouldn't we ask the Unicode consortium to introduce programming
languages page with "access" as single character (and "goto", "if", "then",
"begin", "end", ... etc). They surely would enjoy it, since they did just
so for Roman numerals, degree symbols (�C, �F) etc. That would make the
mess perfect! (:-))

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  reply	other threads:[~2011-10-11  7:36 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-10 16:30 sharp ß and ss in Ada keywords like ACCESS Georg Bauhaus
2011-10-10 16:46 ` Adam Beneschan
2011-10-10 18:23   ` Georg Bauhaus
2011-10-10 22:25     ` sharp � " Randy Brukardt
2011-10-11  7:36       ` Dmitry A. Kazakov [this message]
2011-10-11  7:41         ` sharp ß " Yannick Duchêne (Hibou57)
2011-10-11  8:33           ` Dmitry A. Kazakov
2011-10-11 20:32             ` sharp � " Randy Brukardt
2011-10-12  7:43               ` Dmitry A. Kazakov
2011-10-12  9:42                 ` J-P. Rosen
2011-10-12 12:09                   ` Dmitry A. Kazakov
2011-10-12 20:17                 ` sharp " Randy Brukardt
2011-10-12 21:18                   ` Dmitry A. Kazakov
2011-10-11 17:33     ` sharp ß " Martin Krischik
2011-10-11 18:54       ` Adam Beneschan
2011-10-12 13:03       ` Georg Bauhaus
2011-10-12 13:48         ` Dmitry A. Kazakov
2011-10-12 18:24           ` Georg Bauhaus
2011-10-12 20:06             ` sharp � " Randy Brukardt
2011-10-12 20:48             ` sharp ß " Dmitry A. Kazakov
2011-10-12 22:56               ` sharp ß and ss in Ada keywords like AC CESS Georg Bauhaus
2011-10-13  8:10                 ` Dmitry A. Kazakov
2011-10-13 12:13                   ` Georg Bauhaus
2011-10-13 13:25                     ` Dmitry A. Kazakov
2011-10-13 15:18                       ` Georg Bauhaus
2011-10-13 19:17                         ` Dmitry A. Kazakov
2011-10-11  7:33   ` sharp ß and ss in Ada keywords like ACCESS Yannick Duchêne (Hibou57)
2011-10-11 14:32     ` Adam Beneschan
2011-10-11 17:26   ` sharp ß and ss in Ada keywords like ACCESS (better not) Martin Krischik
2011-10-12 12:34     ` Georg Bauhaus
2011-10-10 17:22 ` sharp ß and ss in Ada keywords like ACCESS Simon Wright
2011-10-10 17:45 ` AdaMagica
replies disabled

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