lean2/tests/lua/state.lua

6 lines
118 B
Lua
Raw Normal View History

s = State()
s:eval([[ y = 5; print(x); print(y); ]])
s:set("x", 10)
s:set("y", nil)
s:eval([[ print(x); print(y); ]])