lua-users home
lua-l archive

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


I agree that both of those would be useful. Capturing varargs on assignment
is particularly interesting for the results of a pcall if you want to pass
the results on up the chain.

Mark

on 7/1/04 4:56 PM, Edgar Toernig at froese@gmx.de wrote:

> local start, end, ... = string.find(str, somepattern)
> print("captures", ...)

> print("i have", argn(...), "varargs")