[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: ... efficiency (was Re: class implementation)
- From: Mark Hamburg <mhamburg@...>
- Date: Thu, 06 Apr 2006 15:27:17 -0800
on 4/6/06 8:17 AM, David Jones at drj@pobox.com wrote:
> "for k,v in pairs{...}" is not quadratic, but it isn't fast.
It's also incorrect if you care about nils or order. Ipairs is incorrect if
the arguments can contain nils.
The set of cases where nils matter when iterating over varargs is probably
small, but it is potentially an issue.
Mark