lua-users home
lua-l archive

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


On 04/25/2018 11:55 PM, Bruce Hill wrote:
> * The return value of Immutable(...) is a lot like a class, which means that it can have its own methods and class variables (provided in the optional second argument) 
[...]
> * You can only set the fields you specify when the class is created
[...]

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)) ?

-- Martin

Attachment: signature.asc
Description: OpenPGP digital signature