lua-users home
lua-l archive

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


>Ability to add custom metadata (or some kind of attributes like in C#)

This is better done using a table constructor that can then check for validity.
Your example would be something like this:

  SomeTable = MyTypedTable{
	  a = 1,
	  b = 2,
	  objname = "test.obj",
  }

  function MyTypedTable(t) <do validation here> end

--lhf