Previous: Adding foreign definitions, Up: Foreign language interface [Contents]
• Interfacing with C : | How to write code to interface with C | |
• Interfacing with C# : | How to write code to interface with C# | |
• Interfacing with Java : | How to write code to interface with Java |
All Mercury implementations should support interfacing with C. The set of other languages supported is implementation-defined. A suitable compiler or assembler for the foreign language must be available on the system.
The Melbourne Mercury implementation supports interfacing with the following languages:
Use the string "C"
to set the foreign language to C.
Use the string "C#"
to set the foreign language to C#.
Use the string "Java"
to set the foreign language to Java.