lol.lua
lol.lua is an object prototyping implementation for Lua. It features cloning, copying and deep copying, and dynamic prototyping.
Example:
local lol = require('lol') local point = lol:clone() function point:init() self.x, self.y = 0, 0 end local p = point:clone() print(p.x, p.y) -- 0 0
Grab it on Github.
Category: