Anonymous user
Call a foreign-language function: Difference between revisions
→{{header|Julia}}
m (→Calling C) |
|||
Line 893:
@show unsafe_string(p) # "Hello world"
ccall(:free, Void, (Ptr{Cuchar},), p)</lang>
'''PyCall''', [https://github.com/JuliaPy/PyCall.jl source]:
<lang julia>using PyCall
@pyimport math
@show math.cos(1) # 0.5403023058681398</lang>
=={{header|Kotlin}}==
|