lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Fri, Dec 5, 2008 at 3:59 PM, Linker <linker.m.lin@gmail.com> wrote:
Sorry, it's a my mistake.

Regards,
Linker Lin
linker.m.lin@gmail.com

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.