lua-users home
lua-l archive

[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

It's my opinion that the implementation of varargs in 5.1
is overly restrictive:

See <>,
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 ;)