[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Alternatives to reference counting
- From: steve donovan <steve.j.donovan@...>
- Date: Wed, 27 May 2009 08:47:38 +0200
On Wed, May 27, 2009 at 2:27 AM, TNHarris <telliamed@whoopdedo.org> wrote:
> The reliable way is to explicitly call a release function, which is what
> I'm currently doing, with a bold-faced note reminding me to always
> release link queries. But I'm sure one day I (or one of my users) will
> forget. So an automatic release would be preferred.
Have a look at:
http://lua-users.org/lists/lua-l/2008-01/msg00138.html
RAII (so beloved of C++) is a very useful pattern
steve d.