lua-users home
lua-l archive

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


It seems we're converging, specially with Edgar Toernig's mods...
Just another detail:

        symname = lua_pushfstring(L, "_%s", init);

instead of

        lua_pushfstring(L, "_%s", init);
        symname = lua_tostring(L, -1);

Actually, with ET's mods, we don't need symname at all:

        sym = NSLookupSymbolInModule(module, lua_pushfstring(L, "_%s", init));

But this may not be clear code...
--lhf