lua-users home
lua-l archive

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


>      The Manual for Lua (pretty consistently across versions) says that you are not supposed to call lua_upvalueid for upvalues that do not exist:
>
> So... what happens if you do? Undefined behavior, essentially?

Yes. The C API does not hold your hand. If you give it bad input, then
bad things may happen.