[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: __assign
- From: "Dan East" <dan@...>
- Date: Mon, 14 Jun 2004 10:48:02 -0400
Is there some non-trivial implementation issue that prevents an __assign
metatable event within Lua? Or is there some other mechanism already
providing the same functionality?
My C function pushes a table into Lua that represents a struct. If I
could catch assignments to the table elements then I could easily allow
intuitive (ie non Get / Set function oriented) writing to my structs. Of
course __newindex doesn't work, because I need to know when existing
elements are assigned new values, not when new indices are created.