This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the Java project.


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

Re: instanceof in CNI


Oskar Liljeblad wrote:

> Is there anything similar to the Java instanceof operatior in C++/CNI?

You can use _Jv_IsInstanceOf(object, class)

To get a reference to a Class object to compare against, you currently
have to use Class::forName(), or compare against the mangled symbolic
class name directly. This is something we're looking at addressing soon
in gcjh.

regards

  [ bryce ]

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