lua-users home
lua-l archive

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


> Should I change the metatable on the table from weak to non-weak before
> iterating?

No. Actually, it is not a good idea to change the weakness of a table.

On the other hand, I think I was wrong saying "It is always dangerous to
iterate a weak table."  Maybe it is difficult to implement correctly :)
But it should be safe to iterate weak tables.

-- Roberto