lua-users home
lua-l archive

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


If I do

	lua_pushcfunction(L, &foo);
	lua_pushcfunction(L, &foo);

	rc = lua_equal(L, -1, -2);

is the value of `rc' guaranteed to be 1 in Lua 5.1, Lua 5.2, and LuaJIT?
That is, is it part of the language that C functions without upvalues are
compared according to their C function pointer values?