test1.nim
303 Bytes
import squeaknim
type
MyFloat = float32
Vector3 = object
x, y, z: MyFloat
setModulename "urhonimo"
wrapObject("Vector3", Vector3)
writeExternalLibrary()
proc foo(a, b: Vector3; c: openArray[int]): cstring {.exportSt: "bar".} =
result = "some string here"
writeSmallTalkCode("test1.st")