lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Fri, Mar 9, 2012 at 6:31 AM, Dimiter 'malkia' Stanev
<malkia@gmail.com> wrote:
> But what happens when some function gets access to the literal and modifies
> it?

A proper implementation would throw an Error.

Peter Cawley, I fully agree that immutable tables and immutable
variables would be a valuable addition. I recently hijacked the
"Luaerl" thread to make point for this, and how this kind of coding I
perceive as one of the next waves.

The question is, Is it bloating, or is it an addition that easily puts
out more value than it costs. I think its the second. I guess the Lua
duumvirat likely would judge it to be bloating...