lua-users home
lua-l archive

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

On 04/26/2018 06:46 AM, Daurnimator wrote:
> On 26 April 2018 at 14:41, dyngeccetor8 <> wrote:
>> So it's impossible to modify existing fields?
>> Say if implement mentioned "Point" as a class, there will be no sense
>> in method (Point:moveTo(x, y)) ?
> That's what immutable means.

Yes. I just can't imagine useful example of class with immutable
fields. In my opinion, this implementation of immutable tables
is very good, but class analogy misguides intended usage.

-- Martin