lua-l archive
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
Re: When does __index metamethod get called?
From
: Chris <coderight@
...
>
Date
: Thu, 16 Mar 2006 18:46:46 -0500
On 3/16/06,
Jerome Vuarand
<
jerome.vuarand@ubisoft.com
> wrote:
__newindex is used for any write to he table.
__index is a getter, __newindex is the setter.
D
oub.
Well, it would be nice if __newindex was called for any write but that doesn't seem to be the case. That's actually how I thought it would work at first since I couldn't find a __setindex metamethod.
--
// Chris
References
:
RE: When does __index metamethod get called?
,
Jerome Vuarand
Prev by Date:
Re: When does __index metamethod get called?
Next by Date:
Re: When does __index metamethod get called?
Previous by thread:
RE: When does __index metamethod get called?
Next by thread:
Re: Lua Digest, Vol 151, Issue 6
Index(es):
Date
Thread