extern "C++"

Oskar Liljeblad osk@hem.passagen.se
Sat Apr 1 00:00:00 GMT 2000


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.


More information about the Java mailing list