Ah, I knew I was missing something obvious! Thank you.
A question, though - I thought one of the reasons that the use of nil in determining the length (size) of a table was not done because a table could in fact have nil values and that the presence of one or more nil values in the table would invalidate determining the size if it just walked the table until it hit a nil value ?
As a side question of that - how do people model a table or array-type structure that has nils ? Is a sentinel value like 0 used instead ?
Again, apologies if this is a really basic question - I'm still waiting for my Monday coffee to take effect!
Thanks,
- J