instanceof in CNI

Bryce McKinlay bryce@albatross.co.nz
Sat Mar 25 04:09:00 GMT 2000


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 ]


More information about the Java mailing list