[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Is this true?
- From: Markus Huber <pulse@...>
- Date: Wed, 18 Apr 2001 04:14:28 +0200 (BST)
Is this true for all six basic types of objects?
Lua use automatic memory management for all types of objects e.g.
strings. This means that you do not have to worry about allocation and
deallocation of memory; Lua handles this for you. A string may contain
a single letter or a whole book. Lua handles large objects quite
efficiently. Programs that manipulate strings with 100K or even 1M
characters are not unusual in Lua.
Then I don't understand: You cannot change a character inside a string,
as in C; instead, you create a new string with the desired
If I would like to change or append a few bytes in or to an 1M string,
Lua creates a new 1M string?