[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Virgin tables
- From: uki <ukaszg@...>
- Date: Thu, 30 Dec 2010 14:14:39 +0100
2010/12/30 Axel Kittenberger
<axkibe@gmail.com>
> print('table isvirgin ',table.maxn(tab)==#tab)
And again another # pitfall. This might or might not return true for
tables with holes!
I wonder how many more bugs will be out there due to people expecting
# to be in this or that way, other than the random indix when called
upon a table with hole.
Personally I too consider for a language that presents itself as easy
and the code looking tidy, the # notion an unfortunate stumbling block
I'm sure many more people will get their nose bloody.
Please correct me if I'm wrong:* if table has no holes # works
* if table has holes you don't know what # will return (it might return proper length or lenght of the first 'block' up till the first hole)
Do I understand this properly?
--
Łukasz Gruner