[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Detecting read or write access in __index metamethod
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 15 Dec 2010 14:09:48 -0200
> Is there a way to detect in an __index meta-method, written in C, if the
> access is for reading or writing a value? I.e. to distinguish between
>
> a.b.c = 42
>
> and
>
> local answer = a.b.c
Perhaps you mean this? http://lua-users.org/wiki/AutomagicTables