lua-users home
lua-l archive

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


Hi,
In our game, we assign guids to function names and then use variable names to resolve them when needed to provide a human friendly way to access these functions. I'm wondering if there is a way to get the string name of the intermediate reference. For example:


Foo = f1234

function f1234(param)
....
end

Is there any way, given "Foo", to find "f1234"?

If I do:
lua_pushstring(L, "Foo");
lua_gettable(L, LUA_GLOBALSINDEX);

Now the stack has a function on it, but I want to get the string "f1234" instead. Is this possible?

Brett