first commit

This commit is contained in:
alessandro bason 2026-01-23 16:17:53 +01:00
commit ed502bdf2a
6 changed files with 780 additions and 0 deletions

7
libs/clasp.lua Normal file
View file

@ -0,0 +1,7 @@
-- evolbug 2017, MIT License
-- clasp - class library
local class = { init = function()end; extend = function(self, proto) local meta = {}
local proto = setmetatable(proto or {},{__index=self, __call=function(_,...) local o=setmetatable({},meta) return o,o:init(...) end})
meta.__index = proto ; for k,v in pairs(proto.__ or {}) do meta['__'..k]=v end ; return proto end }
return setmetatable(class, { __call = class.extend })