Universal Character Names, v2
Joern Rennecke
joern.rennecke@superh.com
Mon Dec 2 13:46:00 GMT 2002
> > 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
More information about the Java
mailing list