[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Using Lua's memory allocator
- From: Patrick Rapin <toupie300@...>
- Date: Tue, 11 Oct 2011 13:24:24 +0200
I think that I misunderstood your question. You are perhaps looking for a *automatic* garbage collector for C. Lua is in this case *not* what you are looking for! Lua garbage collector does not scan the content of userdata (or any other type) to find "pointers" to used data. An Lua value can be collected if it no more on the stack nor referenced in another accessible Lua value.