lua-users home
lua-l archive

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

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.