Follow-up Comment #4, bug #20723 (project freeciv): So I think the luaL_requiref() invocations each replace the 'luasql' table/object/thing in the global namespace with a new one, so only the last one invoked wins, giving us a 'luasql' table containing only e.g. 'sqlite3()'.
The LuaSQL docs <http://keplerproject.org/luasql/manual.html#drivers> indicate that an equivalent set of 'require' statements inside Lua *can* end up with a 'luasql' table containing multiple drivers simultaneously. I haven't got enough of a handle on Lua semantics or implementation yet to figure out how to simulate this when loading modules from C, however. _______________________________________________________ Reply to this item at: <http://gna.org/bugs/?20723> _______________________________________________ Message sent via/by Gna! http://gna.org/ _______________________________________________ Freeciv-dev mailing list [email protected] https://mail.gna.org/listinfo/freeciv-dev
