lua-users home
lua-l archive

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


On 12 March 2012 17:20, Janis Britals <jbritals@xs4all.nl> wrote:
> I've done this for my Qt bindings using standard Lua C API and placement new
> (where needed), and it works pretty smoothly, although I agree about the
> things getting quite complex.

Do you mean creating new Lua userdata and then using the placement new
operator on the Lua-allocated memory? How does it work with the Qt
parent-child memory management, when child objects are deleted along
with parent objects? How did you implement the delete operator, so it
does not mess up Lua memory?