lua-users home
lua-l archive

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


> 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