Object.h -vs- nacd_1
Per Bothner
per@bothner.com
Wed Jun 20 08:48:00 GMT 2001
Tom Tromey <tromey@redhat.com> writes:
> One approach would be to simply choose a really obscure name, like
> `$$$$$$$'. I dislike this sort of hack though. (nacd_1() itself is
> unlikely to occur. Perhaps this problem is simply ignorable. That is
> gross though.)
Well, the concept of "named reserved to the implementation" isn't
technically part of Java, but the '$' character is semi-reserved.
And '__' is reserved in C/C++. So I suggest:
virtual void __nacd$1 (void) {};
virtual void __nacd$2 (void) {};
--
--Per Bothner
per@bothner.com http://www.bothner.com/per/
More information about the Java
mailing list