Skip to content

v0.2.1.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@MatusGuy MatusGuy released this 19 Jul 13:34
· 12 commits to master since this release

Mt BETA: 0.2.1.0

Version not working as expected (lack of tests)

No new widgets in this version, just functionality upgrades

I'm expecting Mt to:

  • Use metamethods to the object's advantage:

    • __newindex calls the setters respectively:
      local obj = MObject.Init()
      obj.Name = "myCoolObject" -- calls obj:SetName("myCoolObject")
    • __index is rightfully used:
      When initializing an object, it will no longer copy every member in the class
    • __tostring is equal to MObject.Name, now you can run tostring(obj) to get the object name
    • __name is used, even though it's quite broken, it's equal to MObject.Name

    Later I will allow you to construct an MObject by just calling MObject() using the __call metamethod