Some minimal util for lua.
Mainly :
- class system
- forward compat for
loadfunction - some other minor functions
Some code comes from thirdparties :
- mini.class : knife.base under MIT License
- mini.compat-env : pl.compat under MIT License
It's an assert function that accept the error function's third argument.
A way to get an uniq value (as key) from two or more object.
local a, b, c = {}, {}, {}
local t = {}
local key = assoc(a, b, c)
t[key] = "abc"Provide a minimalist forward compatibility layer for the load function
Generate a read/writable table proxy indexed from a readonly table.
FILLME
FILLME
FILLME
A function to convert plaintext to lua pattern to be matched using any string.* matching function (find, match, gsub, ...)
Use to use an instance like a usual standalone function
FILLME
A simple function to convert :
"true"string totrueboolean value"false"string tofalseboolean value- anything else to nil
FILLME
My code is under MIT License