lua-users home
lua-l archive

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


on 2/10/06 12:00 PM, Roberto Ierusalimschy at roberto@inf.puc-rio.br wrote:

> You did not. We did :) Now it is in the documentation (as deprecated,
> although they are still available in the code).

I understand the motivation for deprecating them, but is there thought to
what the replacement is for:

    table.foreach( t, print )

It's a lot wordier to write:

    for k, v in pairs( t ) do print( k, v ) end

Mark