lua-users home
lua-l archive

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

On Tue, 18 Oct 2011 09:59:08 +0200, steve donovan wrote:

(Moving Penlight away from module() was not trivial - can't do this
without a lot of tests, and the last problems only disappeared when I
started to use a global-checking script)

Since you say that, I wanted to ask: is there a way to make Penlight
compatible with its own "strict" module?

What I mean is that using the latest version of Penlight in LuaRocks
(0.9.5-1) I get:

    > require "pl.strict"
    > require "pl"
/usr/share/lua/5.1/pl/utils.lua:230: variable 'pack' is not declared
    stack traceback:
        [C]: in function 'error'
/usr/share/lua/5.1/pl/strict.lua:41: in function </usr/share/lua/5.1/pl/strict.lua:39>
        /usr/share/lua/5.1/pl/utils.lua:230: in main chunk
        [C]: in function 'require'
        /usr/share/lua/5.1/pl/init.lua:20: in main chunk
        [C]: in function 'require'
        stdin:1: in main chunk
        [C]: ?