lua-users home
lua-l archive

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

Edgar Toernig wrote:

> The vm already knows about lists.  It builds them for var arg functions...
Ah didn't see that, thanks for the correction.

> Indeed very tricky when implemented with regular tables.  The
> question is, is it really necessary?  With my semantic of the list loop
> an 'n' field (or getn function) is not required.  And the other "most
> common use of n/getn" would be (I guess) tappend.  And for that there
> may be simpler optimizations.
I think it's too useful to have nil's in a list.  I couldn't see giving that