How to add an object which is created by GO into the lisp env ?
yzprofile opened this issue · 3 comments
yzprofile commented
It's like to the env.AddFunction(),
For example:
env.AddVariable("bar", glisp.SexpInt(111))
yzprofile commented
I think I found the solution:
Use env.AddFunction("foo", foo.XXFunction)
But I still want to know how to add the new variable ..
zhemao commented
Hi, sorry, this is something I overlooked to add to the API. There is now an env.AddGlobal(name, object) method.
yzprofile commented
Thanks : )