[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: [ANN] stdlib 37 released
- From: Gary Vaughan <gary@...>
- Date: Sat, 18 Jan 2014 12:13:42 +1300
General Lua Libraries
I am happy to announce release 37 of stdlib.
stdlib's home page is at http://rrthomas.github.io/lua-stdlib
Unfortunately, v36 tripped a bug in the LuaRocks installer which made
the release useless. This is a quick release with a workaround for
that bug, also incorporating some changes based on feedback from the
previous release.
* Noteworthy changes in release 37 (2014-01-18) [stable]
** New features:
- Lazy loading of submodules into `std` on first reference. On initial
load, `std` has the usual single `version` entry, but the `__index`
metatable will automatically require submodules on first reference:
local std = require "std"
local prototype = std.container.prototype
- New `std.optparse` module: A civilised option parser.
(L)Documentation distributed in doc/classes/std.optparse.html.
** Bug fixes:
- Modules no longer leak `new' and `proper_subset' into the global
table.
** Incompatible changes:
- `std.getopt` is no more. It appears to have no users, though if there
is a great outcry, it should be easy to make a compatibility api over
`std.optparse` in the next release.
Install it with LuaRocks, using:
luarocks install stdlib 37
Until the rocks are available from the official repository in a few days,
you can install directly from the stdlib release branch, with:
$ luarocks install \
http://raw.github.com/rrthomas/lua-stdlib/release-v37/stdlib-37-1.rockspec