[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.2 #... proposal and patch.
- From: Dirk Laurie <dpl@...>
- Date: Mon, 2 May 2011 12:50:33 +0200
On Mon, May 02, 2011 at 12:24:02PM +0200, Benoit Germain wrote:
>
> It happens that I only have to be able to make the difference between
> '1' and 'more than 1'.
function myfunc(arg1,...)
if ... then print('many',arg1,...)
else print('one',arg1)
end
end
Works unless you do obscene things like
myfunc(1,nil,3)
Dirk