* fixes #14409; fixes#10674 VM callbacks switch to table-index seqs * fixes package name * reduce runtime cost
This commit is contained in:
parent
fc068ee06d
commit
4647c7b596
5 changed files with 37 additions and 23 deletions
|
|
@ -23,7 +23,7 @@ proc initInterpreter(script: string): Interpreter =
|
|||
|
||||
proc main() =
|
||||
let i = initInterpreter("myscript.nim")
|
||||
i.implementRoutine("*", "exposed", "addFloats", proc (a: VmArgs) =
|
||||
i.implementRoutine("nim", "exposed", "addFloats", proc (a: VmArgs) =
|
||||
setResult(a, getFloat(a, 0) + getFloat(a, 1) + getFloat(a, 2))
|
||||
)
|
||||
i.evalScript()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue