libjava doesn't build with new cp/*

Gabriel Dos Reis gdr@integrable-solutions.net
Fri Sep 5 07:09:00 GMT 2003


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



More information about the Gcc mailing list