[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Adding module+DLL to Lua for Windows (LfW)
- From: steve donovan <steve.j.donovan@...>
- Date: Wed, 9 Dec 2009 12:52:57 +0200
On Wed, Dec 9, 2009 at 12:47 PM, Jerome Vuarand
> program to have several independent heaps. A way to avoid that is to
> avoid malloc in C modules, and only use lua_newuserdata (or the
> lua_Alloc directly) for memory allocation.
I see the point - if extensions are always using Lua for memory
allocation, then they are only really going to be using the allocator
in the Lua dll. However, there is a lot of C Lua extensions out there
that use malloc. Then there is also the issue of external required
dlls and their dependencies.