lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I'd be interested to know if it works or not!

Bear in mind that it's not going to be as memory efficient as if you did have a C structure.  I don't know how expensive a new Lua thread is, but I'm sure it would be more than (lua_State* + int from luaL_ref), which is all you'd need a custom struct to hold.  Whether that is acceptable or not depends entirely on your circumstances, of course.