[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [BUG]Lua function args bug
- From: Miles Bader <miles@...>
- Date: Sat, 06 Dec 2008 13:48:31 +0900
"pan shizhu" <email@example.com> writes:
> It is quite normal to use table.foreach and made this kind of mistake. I
> think this might be the reason to obsolete table.foreach. Please note that
> table.foreach is officially obsoleted. Use for k,v in pairs(table) instead,
> which is less prone for mistake.
Using "for" is better for code, but table.foreach is often more
convenient for interactive use.
Love is a snowmobile racing across the tundra. Suddenly it flips over,
pinning you underneath. At night the ice weasels come. --Nietzsche