Search code examples
javac++programming-languagesd

Is it possible to write one program with three programming languages?


Is it possible to make one program, written in Java, C++ and D?


Solution

  • So you want to write, say, a game that compiles both in Java, C++ and D ? No can do. But you can e.g. create a library (in C) with common logic and use that from Java (via JNI), C++ and D.

    Still, there's not much point in doing so except if you need to target platform where you don't have influence on the environment (like an embedded system or something like iOS or Android).