[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: caching pointers to Lua strings?
- From: steve donovan <steve.j.donovan@...>
- Date: Fri, 10 Jun 2011 10:55:54 +0200
On Fri, Jun 10, 2011 at 10:42 AM, Reuben Thomas <email@example.com> wrote:
> You can get away with it for a short time under normal circumstances,
> i.e. when there's no GC before you use the string, but it will bite
> you in the end!
So presumably you can get away with it if you explicitly create a
reference to the string with luaL_ref?
Then of course you need to know when to release that reference.