This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--@name Class | |
--@author Xandaros | |
--Class library, most recent version can be found here: https://gist.github.com/Xandaros/ea8756e4c4ba00218855 | |
local function callConstructor(class, obj, ...) | |
local meta = getmetatable(class) | |
if meta.__super then | |
if class.superArgs then | |
callConstructor(meta.__super, obj, class.superArgs(...)) |