[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.2.0 (work1) now available
- From: Mark Hamburg <mark@...>
- Date: Sat, 9 Jan 2010 00:42:01 -0800
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?
Mark