[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Penlight and globals (was: modules, require, magic)
- From: Pierre Chapuis <catwell@...>
- Date: Tue, 18 Oct 2011 11:06:48 +0200
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]: ?
- References:
- modules, require, magic, Eduardo Ochs
- Re: modules, require, magic, Javier Guerra Giraldez
- Re: modules, require, magic, Petite Abeille
- Re: modules, require, magic, Sam Roberts
- Re: modules, require, magic, David Manura
- Re: modules, require, magic, Mark Hamburg
- Re: modules, require, magic, Sean Conner
- Re: modules, require, magic, Josh Simmons
- Re: modules, require, magic, Josh Simmons
- Re: modules, require, magic, steve donovan