lua-users home
lua-l archive

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


On Fri, Dec 17, 2010 at 12:34:25AM +0200, James Graves wrote:
> 
> As a side note, I do sometimes use a table as a regular list, but then
> stash extra stuff under named keys.  So if the table length operator
> included items in the hash part... well, that would be bad for me.
>
This, I suspect, is *exactly* the application that inspired the length
operator and all the table functions.  

Of course, if you behave obediently, you will not be using keys like
1234567 in the hash part, and your array part will always be perfect.

Dirk