This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Object.h -vs- nacd_1


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]