zhemao/glisp

How to add an object which is created by GO into the lisp env ?

yzprofile opened this issue · 3 comments

It's like to the env.AddFunction(),

For example:

env.AddVariable("bar", glisp.SexpInt(111))

I think I found the solution:

Use env.AddFunction("foo", foo.XXFunction)

But I still want to know how to add the new variable ..

Hi, sorry, this is something I overlooked to add to the API. There is now an env.AddGlobal(name, object) method.

Thanks : )