This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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 doesn't build with new cp/*


Alexandre Oliva <aoliva@redhat.com> writes:

| On Sep  4, 2003, Nathan Sidwell <nathan@codesourcery.com> wrote:
| 
| > 	*(::java::lang::Object**) &peer = (::java::lang::Object*) w;
| 
| If the point is to make the left-hand operand an lvalue, just cast to
| a reference type:
| 
|         (::java::lang::Object*&) peer = (::java::lang::Ojbect*) w;

Still, this looks like an obscure code.  It should probably be written
with one of the new-style cast operator so that, now, it appears
crystal-clear to everybody what it does.

-- Gaby


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