|
On Apr 9, 2014, at 1:10 AM, Rena <hyperhacker@gmail.com> wrote:
For the very reason you stated I think this is a fragile solution. You have no guarantee that Lua will directly call your allocator for the string push .. all sorts of other things could happen, and indeed change from release to release of Lua. It could intern the string. it could re-use an internal buffer cache. It could allocate some OTHER string internally before allocating space for your string. —Tim |