It looks like you're new here. If you want to get involved, click one of these buttons!
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
you can get the class code there https://bitbucket.org/TwoLivesLeft/core/wiki/CodeaClasses
@Jmv38 I understand how to use it, but why does it exist if you can just do the above?
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.
Comments
you can get the class code there https://bitbucket.org/TwoLivesLeft/core/wiki/CodeaClasses
@Jmv38 I understand how to use it, but why does it exist if you can just do the above?
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.