Embedded TCL inside Kotlin
TCL code which runs from kotlin
puts "Hello, world!"
Kotlin code which run TCL
package plot
import kotlinx.cinterop.*
import tcl.*
fun main()
{
var tcli = Tcl_CreateInterp()
if(Tcl_Eval(tcli, "set a 1")==TCL_OK) {
Tcl_EvalFile(tcli, "hello.tcl")
}
Tcl_DeleteInterp(tcli)
}
You need to install MSYS2 and tcl using below command
pacman -S mingw-w64-x86_64-tcl mingw-w64-x86_64-tk
End Of Article