myscript.nim 274 B

123456789101112131415
  1. import exposed
  2. type NumberHolder = object
  3. ival: int
  4. fval: float
  5. echo "top level statements are executed!"
  6. echo NumberHolder(ival: 10, fval: 2.0)
  7. proc hostProgramRunsThis*(a, b: float): float =
  8. result = addFloats(a, b, 1.0)
  9. let hostProgramWantsThis* = "my secret"