Lua面对对象及属性的实现

-- class.lua-- Compatible with Lua 5.1 (not 5.0).function class(base, init) local c = {} -- a new class instance if not init and type(base) == 'function' then init = base base =

- 阅读全文 -