lua-users home
lua-l archive

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

On Tue, Jan 17, 2012 at 04:32, Rob Kendrick <> wrote:
> On Tue, Jan 17, 2012 at 08:32:59AM -0200, Luiz Henrique de Figueiredo wrote:
>> > So we can rely on this behaviour and safely compare the pointer
>> > instead of the string itself?
>> Yes, but you have to make sure that the strings still exist in Lua,
>> that is, are not collected. One way to do that is to use them as keys
>> or values in a table.
> Would it also be safe to simply not do any allocation, and thus not
> trigger automatic collection?
> B.

...and don't allow any loaded scripts or modules to trigger manual collection.

Sent from my toaster.