lua-users home
lua-l archive

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


--- Duck <duck@roaming.ath.cx> wrote:

> 
> >Anyway, code like:
> >
> >   local t = {...}
> >   for k = 1, #t do
> >      local v = t[k]
> >      do_something (k, v)
> >   end
> >
> >seems clear enough...
> 
> That's exactly my point. That code is the clear and
> natural way to use 
> {...}, but it also breaks whenever any of the args
> in ... is nil.

- for k=1, # do
+ for k=1, select('#', ...) do



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com