lua-class icon indicating copy to clipboard operation
lua-class copied to clipboard

Support for anonymous classes

Open misterquestions opened this issue 4 years ago • 0 comments

Would be great to have some support for anonymous classes that are returned like a table, this is helpful to allow local declaration for classes. One example would be:

local AwesomeClass = class {
    constructor = function(self, arg1, arg2, ...)
    end,
}

local myinstance = AwesomeClass("asd", false);

misterquestions avatar Jan 05 '22 22:01 misterquestions