[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Wrapping existing FILE *s as Lua file objects
- From: "Reuben Thomas" <rrt@...>
- Date: Mon, 15 Jan 2007 01:45:39 -0000
I have looked at this for a while, and I can't see a way to get rid of the
GC method without deleting it from the original metatable, which means
that all files have to be closed manually. Grr. Any other solutions?
(Reminder: the problem I'm trying to solve is allowing FILE *s to be
passed into Lua as normal Lua file handles without being garbage collected
when the lua_State shuts down.)
--
http://rrt.sc3d.org/