lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Wed, Dec 9, 2009 at 12:47 PM, Jerome Vuarand
<jerome.vuarand@gmail.com> wrote:
> 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.