utility belt in lua
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lua-libs
README.md

README.md

lua-libs

utility belt in lua
OOP Memoization tools Collections String manipulation
oop.item flyweight link sitrul
oop.item-commons memento
memoize
create objects
local class = require 'oop.item-min'
local derived = class:of()
local derivedWithProperties = class:of{
  fun = function()print("this is a simple function call!")end,
  var = "this is a variable"
}
...
with Class-Commons
require 'oop.item-commons'
local class = commons.class("class",{})
...
memento pattern
...
local memento = require 'memento'
memento.register(a_tab)
...
-- do stuff
...
memento.regen(a_tab)
...