libjava status on Solaris 8/Intel and IRIX 6.5
Andrew Haley
aph@cambridge.redhat.com
Wed Mar 20 07:22:00 GMT 2002
Andrew Haley writes:
> Andrew Haley writes:
> >
> > > But, I accept that something needs to be done if we really want to
> > > support MMU-less systems. Why wouldn't overloading operator "->"
> > > for Java types work?
> >
> > I don't think so, because a C++ pointer to a type is not part of the
> > type.
>
> Whoa, hold on now Andrew: we can't define a member function to do it,
> but maybe we could get gcjh to define operator-> for each class.
And then I remembered why not:
`my_struct& operator*(my_struct*)' must have an argument of class or
enumerated type
my_struct& operator->(my_struct*)' must be a nonstatic member
function
That's the problem. I'll think some more.
Andrew.
More information about the Java
mailing list