diff options
Diffstat (limited to 'common/class.lua')
-rw-r--r-- | common/class.lua | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/common/class.lua b/common/class.lua index f5cd46e..8fb84b0 100644 --- a/common/class.lua +++ b/common/class.lua @@ -1,8 +1,9 @@ -- currently a class is a table T with T.__index = T --- then to make an instance of this class, we do setmetatable(instance,T) --- this should be fine for anything we wish to do. it is possible we will eventually --- split this into two separate tables though, perhaps? i don't see why we would ever --- do this though. +-- then to make an instance of this class, we do +-- setmetatable(instance,T) +-- this should be fine for anything we wish to do. +-- it is possible we will eventually split this into two separate +-- tables perhaps? i don't see why we would ever do that though local function class() local T = {} |