[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Is this true?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 18 Apr 2001 07:01:27 -0300 (EST)
>If I would like to change or append a few bytes in or to an 1M string,
>Lua creates a new 1M string?
If you want mutable strings, try creating them on the C side with
lua_newuserdata. However, this will only work if you do not change the size
of the string (you can always create a string longer than you need initially).