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]
Other format: [Raw text]

Re: libjava status on Solaris 8/Intel and IRIX 6.5


Tom Tromey writes:
 > >>>>> "Andrew" == Andrew Haley <aph@redhat.com> writes:
 > 
 > Andrew> It's not ugly, just different.  Instead of
 > Andrew>    void barf (java::lang::grope *poo)
 > Andrew> you have
 > Andrew>    void barf (ref<java::lang::grope> poo)
 > Andrew> and carry on as usual.
 > 
 > We can't do that for our CNI methods due to name mangling.
 > Instead we have to wrap all incoming arguments.
 > 
 >     void barf (java::lang::grope *poo)
 >     {
 >       ref<java::lang::grope> no_really = poo;
 > 
 >       ... hope you don't use `poo' by mistake in here, since it will
 >       silently "work" ...
 > 
 >     }

I don't understand.  Why won't using a smart pointer as the arg work?

 > Even with this I think it makes sense for us to make the change.  It
 > will take a lot of time and will be hard to maintain, but it seems
 > necessary.  I'd prefer to change g++, but I'd guess that will be hard
 > to sell.

Hey, I tried.  It was a trivial change to g++ but they wouldn't let me
do it.  :-(

Andrew.


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