[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: no __newindex support for userdata?
- From: Ben Sunshine-Hill <bsunshin@...>
- Date: Sun, 24 Aug 2003 13:11:16 -0700
On Sunday 24 August 2003 01:02 pm, Ando Sonenblick wrote:
> I've sadly discovered that if my metatable for userdata p (heavy, not
> light) has a __newindex method, it is NOT called when attempting to access
> x (and other values).
Sure it does. Setting a value invokes __newindex; getting a value invokes
__index. I use it all the time.
Ben