[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Any pitfalls to the nil index idiom?
- From: nobody <nobody+lua-list@...>
- Date: Tue, 19 Jul 2016 23:16:50 +0200
On 2016-07-19 21:41, Dirk Laurie wrote:
> whereas that of the identity function is
> 1 [1] RETURN 0 2
> 2 [1] RETURN 0 1
(Shouldn't the identify function be this?
1 [1] VARARG 0 0
2 [1] RETURN 0 0
3 [1] RETURN 0 1
(a.k.a. function(...)return...end a.k.a. load"return...")
Otherwise f( io.read("l","l") ) ~= f( id( io.read("l","l") ) ).)