This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
extern "C++"
- To: java-discuss at sourceware dot cygnus dot com
- Subject: extern "C++"
- From: Oskar Liljeblad <osk at hem dot passagen dot se>
- Date: Tue, 29 Feb 2000 08:07:30 +0100
- Reply-To: osk at hem dot passagen dot se
Hello
Would it be possible to inline C/C++ code in Java, like this:
SomeClass.java:
public void myMethod(int param) {
int data;
extern "C++" {
data = param + 10;
}
}
It would certainly make it easier to write extensions/classes with
native code...
Oskar Liljeblad (osk@hem.passagen.se)
PS. Isn't there another project to allow Perl code to be inlined in Java? DS.