This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
Re: instanceof in CNI
- To: java-discuss at sourceware dot cygnus dot com
- Subject: Re: instanceof in CNI
- From: Bryce McKinlay <bryce at albatross dot co dot nz>
- Date: Sun, 26 Mar 2000 00:09:28 +1200
- References: <20000325125254.A2599@strix.eductussyd.se>
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 ]