This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Universal Character Names, v2
- From: Joern Rennecke <joern dot rennecke at superh dot com>
- To: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Cc: Zack Weinberg <zack at codesourcery dot com>, Neil Booth <neil at daikokuya dot co dot uk>, "Martin v. L?wis" <martin at v dot loewis dot de>, gcc-patches at gcc dot gnu dot org, java at gcc dot gnu dot org
- Date: Mon, 02 Dec 2002 21:44:42 +0000
- Subject: Re: Universal Character Names, v2
- Organization: SuperH UK Ltd.
> > So, first off, a meta-issue: I do not think any support for extended
> > identifiers should appear in GNU C/C++/ObjC until this issue is
> > resolved. Once we have something out there in the wild, users will
> > come to rely on its behavior, and we don't want to change it from
> > under them.
>
> Users may rely on particular files being *accepted* - they're less likely
> to rely on them being rejected. Implementing something strict (needed
> anyway for -pedantic), with an option to relax later, should be safe.
To make the set of accepted programs safe for later normalization, you'll
have to give a diagnostic every time an identifier search comes up empty
when searching for an indentifier with identical binary represenatation,
but does find one with the same visual representation.
I suppose the easiest way to implement this is to normalize early, but to store
the original representation too.
Of course, there can be harmless positives, like a local variable shadowing
another variable with wider scope, and the shadowing being benign.
--
--------------------------
SuperH (UK) Ltd.
2410 Aztec West / Almondsbury / BRISTOL / BS32 4QX
T:+44 1454 465658