Created
April 30, 2013 09:23
-
-
Save whoo24/5487608 to your computer and use it in GitHub Desktop.
Implement of class in Lua
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
classTemplate = { | |
new = function(self, func, o) | |
o = o or {} | |
setmetatable(o, self) | |
self.__index = self | |
return o; | |
end | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment