[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: undefined conversion for numeric indexes
- From: David Jones <djones@...>
- Date: Mon, 17 Jun 2002 09:19:00 +0000
In message <firstname.lastname@example.org>, David Jones writes:
> In my lua 4.0 the following code crashes (with a floating point
Further investigation reveals that getn uses a similar conversion and
can crash in the same way.
(While I was looking at getn I noticed)
There is a bug in the documentation for getn. The documentation says:
... the largest numerical index with a non-nil value in the table
but the following code prints 0:
So the documentation should say:
This number is the value of the table field n, if it has a numeric
value, or the largest positive numerical index with a non-nil value
in the table, or 0 if no such index exists.