lua-users home
lua-l archive

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


Dear All,


Is there a deep reason that

function Tuple.new (...)
   return function () return ... end
end

doesn't work and must be simulated using:

function Tuple.new (...)
    t = {...}
    return function () return unpack (t) end
end


Regards,
Peter