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]

extern "C++"


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.

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