Microlight
Microlight copied to clipboard
A little library of useful Lua functions, intended as the 'light' version of Penlight
fix the deprecated function loadstring
Some tildes misplaced, now fixed.
Busted-based unit test: ```lua describe('microlight.class', function() it('Three levels of subclassing works', function() local microlight = require 'ml' local A = microlight.class() function A:_init() self.me='a' end local B = microlight.class(A) function...
at slow speed file systems (aka, flash) is need file:flush() after file:write() alter file:setvbuf('no') to avoid partial file writing a usefull option flag to_append (to write at end of file)...
Currently the license is only documented in the rockspec file which prevents easily seeing what license Microlight is under. Github can automatically detect what license a repo is under and...
It would be nice to have some simple option parsing function included in microlight. Thanks!
`Array:sort(f)` in its current form requires a function to be given as the argument. When a simple comparison based on the `
To make users more aware.
Consider: ``` lua local ml = require'ml' local Class = ml.class tostring = ml.tstring local My_Class = Class() function My_Class:_init(msg) self.salt = "For the Win!" if type(msg) ~= "table" then...