Multi-language programs?

This is a discussion on Multi-language programs? within the C++ Programming forums, part of the General Programming Boards category; Is it possible to make a program that runs off of more than one language?...

Yes. The .NET framework can do it. I'm afraid I only know how to do it using Visual Studio.NET - I'm not sure how you could do this using the SDK. You create one project for each language you intend to use. Put the components for your program from each language in the appropriate project, then add references in each project to all the other projects. If you're not using the .NET framework, I know of no such possibility.

You can write inline assembler in C or C++ or pascal. You can write DLL's in most languages and call them from a c/c++ app. The DLL gets loaded into your programs address space and can be part of the same solution if that counts.

then have a program translates that into C++ and compile the C++, or to have a true language, you'd compile that directly into a binary (if that's the route you take with your language... i.e. not interpreted)

the easiest way to "create your own language" is to map all the keywords in one language to keywords in another language... you wouldn't really be creating a new language, but unless you know how to create a compiler, you won't be able to build a language from the ground up.