lua-users home
lua-l archive

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


On Fri, Dec 18, 2009 at 6:13 PM, Francesco Abbate <gslshell@gmail.com> wrote:
> I would have liked to not touch the beautiful structures of my C++
> classes and let Lua GC be aware of the cross-references.

well, if you're using C++, all this could be abstracted with a small
mixin class, or a template, or a common superclass for all your
shared-data objects.

any of these make the shared data semantics largely invisible, with
roughly the same extra cost as the 'stupid unsiged ref_count'.  :-)

-- 
Javier