[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Are variables immutable?
- From: DENIS <denis@...>
- Date: Wed, 25 May 2022 12:13:17 -0300
variable is just a label to a memory address.
see more below:
Immutability of strings
Lua strings are immutable and interned. This has some implications .
To create a string that differs in only one-character from an existing
100 MB string requires creating an entirely new 100 MB string since the
original string cannot be modified.