Hi, anyone tried some advanced integration os nim code with lua?
I started some experiments with calling nim functions from lua and lua function from nim. While lua->nim works well, I was unable to save reference to lua function using luaL_ref (respective reference as it's called in nim binding). I was able to call lua function by it's name.
Also I ran into this issue which I solved by modifying source code to:
else:
const
NAME* = "lua5.1.dll"
LIB_NAME* = "lua5.1.dll"
and including proper DLL file to my program folder. I think that defining DLL name as LIB_NAME* = "lua(|5.1|5.0).dll" is error.
Also, it seems there are multiple lua bindings - official one, luna wrapper, nimLua (which looks like overkill for me) and even one called lunacy which looks like alternative one... Which one of these is best?