lua-users home
lua-l archive

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

  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.


  Dan East