v0.2.1.0
Pre-release
Pre-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 toMObject.Name
, now you can runtostring(obj)
to get the object name__name
is used, even though it's quite broken, it's equal toMObject.Name
Later I will allow you to construct an
MObject
by just callingMObject()
using the__call
metamethod