Re: caching pointers to Lua strings?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: caching pointers to Lua strings?
- From: steve donovan <steve.j.donovan@...>
- Date: 2011年6月10日 10:55:54 +0200
On Fri, Jun 10, 2011 at 10:42 AM, Reuben Thomas <rrt@sc3d.org> 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.
steve d.