libjava status on Solaris 8/Intel and IRIX 6.5
Andrew Haley
aph@cambridge.redhat.com
Mon Mar 18 14:38:00 GMT 2002
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.
More information about the Java
mailing list