lua-users home
lua-l archive

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


On Mon, Jul 18, 2016 at 8:26 AM, Soni L. <fakedme@gmail.com> wrote:
>
>
> On 18/07/16 04:16 AM, Rain Gloom wrote:
>>
>> If I may play devil's advocate: what about simply using a special data
>> structure for such special cases? Ie.: just implement it as a feature of a
>> usual table with an __index and __newindex metamethod?
>
> Doesn't work for code you don't control.
>
>
> --
> Disclaimer: these emails may be made public at any given time, with or
> without reason. If you don't agree with this, DO NOT REPLY.
>
>

This is valid, and applicable to almost every corner of Lua, including OOP.

-- 
Andrew Starks