[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Second class nil? Strong and weak nils in tables?
- From: gary ng <garyng2000@...>
- Date: Sat, 27 Oct 2007 16:55:14 -0700 (PDT)
--- 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