lua-users home
lua-l archive

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

The implementation of pack does interesting things with LUA_ENVIRONINDEX. I presume it gets away with this because the function doesn't actually need its environment. On the other hand, shouldn't it at least clear the field when done to avoid a problem with values not getting collected if they were last to be packed?

If pack and unpack are paired, then shouldn't unpack look for "n" before turning to lua_rawlen?