Alright so here’s what I’m wondering, what’s the difference between class and this:
function classFake()
local Class = {}
return setmetatable(Class, {
__call = function(...)
Class:init(...)
end
})
end
Alright so here’s what I’m wondering, what’s the difference between class and this:
function classFake()
local Class = {}
return setmetatable(Class, {
__call = function(...)
Class:init(...)
end
})
end
The class is generally easier to use for beginners
@warspyking read the whole link down to the bottom.You’ll see what the class code is. And you’ll see how different it is from your code.