[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: lua_lock
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 13 Nov 1997 17:04:19 -0200
The Lua reference mechanism (Section 5.6 of the manual) has an
option that allows C to keep a reference to a Lua object without preventing
the GC to collect the object. Does anyone use this option? It was supposed
to be useful in breaking 'reference cicles', when C keeps a reference to a
Lua object and Lua keeps a reference to the C object (userdata), and then they
would be never collected. But we are not sure whether anyone ever succeed in
using it...
-- Roberto