lua-users home
lua-l archive

Re: Lua 5.2 #... proposal and patch.

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


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

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