lua-users home
lua-l archive

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


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") ) ).)