[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Size of a non numerical indexed table
- From: Lisa Parratt <lisa@...>
- Date: Thu, 01 Sep 2005 15:21:51 +0100
Wim Couwenberg wrote:
table.foreach (or table.foreachi for that matter) can never report a nil
value, because nil values are not present in a table.
Lua 5.0.2 Copyright (C) 1994-2004 Tecgraf, PUC-Rio
> function wibble(...)
>> table.foreachi(arg,print)
>> end
> wibble(1,nil,2,nil,3)
1 1
2 nil
3 2
4 nil
5 3
It's related to this, but I can't recreate the exact problem right now -
it's deep in the heart of some exceedingly hairy glue code.
The issue was in certain circumstances in 5.1w6, you'd only get the
first 3 results.
--
Lisa
http://www.thecommune.org.uk/~lisa/