lua-users home
lua-l archive

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


> I quite like the proposed array interface (and might end up just
> implementing it in a library of my own), though array(...) somewhat
> irks me - wouldn't array{...} be much more efficient in most cases?

Part of the point here is to support "holes".  You want
   array(nil, nil, nil)
to make a three-element array containing all nils.  Compare to
   array{nil, nil, nil}
which can't possibly be made to work.

Greg F