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/*


>>>>> "Gabriel" == Gabriel Dos Reis <gdr@integrable-solutions.net> writes:

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

Yeah, if I had known this code existed, I would have changed it long
ago.  lvalue casts -- yuck.

I checked in this code yesterday, instead:

    peer = reinterpret_cast< ::java::awt::peer::ComponentPeer *> (w);

(Really no cast is "necessary", except that g++/CNI doesn't know about
java interfaces.)

Tom


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