lua-users home
lua-l archive

Re: lists with nil play nice for Lua 5.2

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


David Manura wrote:
The above could be avoided if we could write this (why
can't we?):
function tuple(...)
 return function(f) return f(...) end
end
It's my opinion that the implementation of varargs in 5.1
is overly restrictive:
http://lua-users.org/wiki/VarargTheSecondClassCitizen
See <http://lua-users.org/lists/lua-l/2007-03/msg00249.html>,
where Roberto says:
Not likely. This would imply the creation of another kind
of upvalues; actually up-non-values, as '...' is not a
(regular) value ;)
--
Aaron
http://arundelo.com/

AltStyle によって変換されたページ (->オリジナル) /