On 15 May 2012 03:58, Mike Pall <mike-1205@xxxxxxxxxx> wrote: > Then better use a classic Lua/C API function, which does: > lua_pushcclosure(L, factory(...), 0) > > --Mike > A nice solution would be something like package.loadlib that you can pass a cdata function object to...