[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua, LuaJIT2 and differences with the length operator
- From: Tony Finch <dot@...>
- Date: Tue, 4 Jan 2011 16:58:00 +0000
On Tue, 4 Jan 2011, Leo Razoumov wrote:
> And how exactly I am supposed to do this job? E.g., how can I test
> that an array t coming my way from someone else's library has no
1: Don't bother. It's the caller's responsibility to obey your API
2: Give your tables a metatable that keeps track of the invariants you
require, if they don't match the ones provided by Lua.
f.anthony.n.finch <email@example.com> http://dotat.at/
HUMBER THAMES DOVER WIGHT PORTLAND: NORTH BACKING WEST OR NORTHWEST, 5 TO 7,
DECREASING 4 OR 5, OCCASIONALLY 6 LATER IN HUMBER AND THAMES. MODERATE OR
ROUGH. RAIN THEN FAIR. GOOD.