lua-users home
lua-l archive

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


Hi folks,

It looks like my C/Lua interactions could be made more efficient if I were to interact with my state's string table directly.  But I'm not sure how dangerous this particular road is :)

As best as I can tell, as long as a TString is never garbage collected, its pointer value will never change.  Thus, as long as I call luaS_fix on a TString, that data won't move around during the lifetime of the Lua state.  

Is this correct?

Thanks,

Sven