[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: question: userdata cross references ?
- From: Javier Guerra <javier@...>
- Date: Fri, 18 Dec 2009 20:35:08 -0500
On Fri, Dec 18, 2009 at 6:13 PM, Francesco Abbate <email@example.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
any of these make the shared data semantics largely invisible, with
roughly the same extra cost as the 'stupid unsiged ref_count'. :-)