lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Enforce strict declaration of all variables (including functions) in
any environment prior to any use or reassignment within that environment.

I am happy to announce release 1.0 of std.strict.

std.strict has a homepage at https://github.com/lua-stdlib/strict, with
documentation at https://lua-stdlib.github.io/strict.

This is a pure Lua library compatible with Lua 5.1 (include LuaJIT), 5.2
and 5.3.                                                                                                                          

For consistency with today’s earlier std.prototype release, and to avoid
any confusion with the separately maintained and distributed
http://www.lua.org/extras/ strict modules, I’ve moved this latest release
of the former lua-stdlib implementation of strict back into the std
namespace.  It is mostly identical to the `strict 1.0` release I announced
a few weeks ago, which I have since removed from luarocks.org.

I’ll be making point releases of any other packages I’m maintaining in the
near future to accommodate the change of namespace.

Install it with LuaRocks, using:

   luarocks install std.strict 1.0


## Noteworthy changes in std.strict release 1.0 (2016-02-07) [stable]

### Incompatible changes

  - To avoid clashing with PUC-Rio strict.lua, rename this package to
    std.strict.  You should change client packages to load from its
    new location:

    ```lua
    local strict = require "std.strict"
    ```

  - To minimise the number of places the release number needs to be
    updated, the `std.strict._VERSION` constant has been replaced by a
    generated `std.strict.version` submodule.