[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: TString question
- From: Sven Olsen <sven2718@...>
- Date: Tue, 8 May 2012 14:20:44 -0700
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?