Re: About the #(length) operator and table.getn
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: About the #(length) operator and table.getn
- From: Petite Abeille <petite.abeille@...>
- Date: 2008年3月25日 19:29:43 +0100
On Mar 25, 2008, at 7:09 PM, RJP Computing wrote:
Is the foreach still available? I don't see it in the table library
documentation. Sorry for such a simple question, but I like the idea
of
using foreach, but only if it is going to be in Lua for many
versions to
come. Thanks.
• Functions table.foreach and table.foreachi are deprecated. You can
use a for loop with pairs or ipairs instead.
http://www.lua.org/manual/5.1/manual.html#7.2