This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Object.h -vs- nacd_1
- To: tromey at redhat dot com
- Subject: Re: Object.h -vs- nacd_1
- From: Per Bothner <per at bothner dot com>
- Date: 20 Jun 2001 08:49:51 -0700
- Cc: Java Discuss List <java at gcc dot gnu dot org>
- References: <877ky880hq.fsf@creche.redhat.com>
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/