[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: __ipairs (was: Re: Lua 5.4 Tuples FTW!)
- From: Andrew Gierth <andrew@...>
- Date: Fri, 16 Mar 2018 08:56:56 +0000
>>>>> "Duane" == Duane Leslie <parakleta@darkreality.org> writes:
Duane> Hi,
Duane> A quick and dirty tuple implementation using the new
Duane> multi-uservalue userdata implementation.
[...]
>> for i,v in pairs(t) do print(i,v) end
A perfect example of why deprecating __ipairs was the wrong move. It
ought to be possible to make this code work with ipairs(t) as well, but
with no __ipairs metamethod it can't be done.
--
Andrew.