[patch] 6746458 support for exotic identifiers (identifier superquote)
Per Bothner
Per.Bothner at Sun.COM
Tue Sep 9 15:50:31 PDT 2008
John Rose wrote:
> The javac frontend should accept any quoted string immediately following
> '#' (with no intervening space), interpreting normal string escape
> sequences, and taking the resulting string exactly as the spelling of a
> normal identifier. Keywords like 'int' should not be recognized.
> Strings which risk being illegal at the JVM level must be rejectedi
> immediately; this simply means rejecting the empty string and strings
> which contain any of the characters "/.;<>[".
I would expect the compiler just "mangle" those characters, as
discussed in your blog. Essentially, you're requiring people
to mangle such string by hand. What's the reason for that?
--
--Per Bothner
per.bothner at sun.com per at bothner.com http://per.bothner.com/
More information about the compiler-dev
mailing list