Detecting read or write access in __index metamethod
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Detecting read or write access in __index metamethod
- From: Marc Balmer <marc@...>
- Date: 2010年12月15日 16:28:21 +0100
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
?
- mb