lua-users home
lua-l archive

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


Sorry, I refered to userdata by mistake.  The __index event only happens on tables. 

- Peter

> Is your __index metamethod a table or a function?  If it is a table, then not much can go wrong.  
> If it is a function, then add more checks to it.  Check that stack index 1 is the userdata that 
> you expect.