Call a foreign-language function: Difference between revisions

Scala solution added
(Scala solution added)
Line 1,878:
}</lang>
 
=={{header|StataScala}}==
<lang Scala>object JNIDemo {
try System.loadLibrary("JNIDemo")
 
private def callStrdup(s: String)
 
println(callStrdup("Hello World!"))
}</lang>
=={{header|Stata}}==
Here are examples showing how to build and call from Stata a plugin written in C or Java. See also the entries 29 to 32 in the ''[https://blog.stata.com/2016/01/15/programming-an-estimation-command-in-stata-a-map-to-posted-entries/ Programming an estimation command in Stata]'' series by David M. Drukker, on [https://blog.stata.com/ Stata Blog].
 
Anonymous user