[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Iterating weak tables in Lua 5.1?
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 01 Dec 2004 11:10:20 -0200
> Has weak table iteration become more dangerous in Lua 5.1? Do I need
> to turn off the garbage collector around this code?
Not more dangerous. It is always dangerous to iterate a weak table.
Probably the change to 5.1 only changes the GC schedule, so that
now it happens in bad times.