lua-users home
lua-l archive

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


Hi,

On Thu, Oct 3, 2013 at 11:51 PM, Peter M <lua4web@gmail.com> wrote:
> Hello!
>
> I get an error when trying to require lua-nucleo from the Lua REPL:
>
>> $ lua
>> Lua 5.2.1  Copyright (C) 1994-2012 Lua.org, PUC-Rio
>> > require "lua-nucleo"
>> attempted to access undeclared global: _PROMPT
>
> It happens because of the lua-nucleo.strict module and the fact that
> the REPL calls lua_getglobal through get_prompt[1].
>
> It seems that the strict module allows the usage of some globals like
> _VERSION, can _PROMPT be added to such list, too?

Apologies for a late reply (I'm not reading the Lua ML these days) and
thank you for the bug report.

This problem is fixed here:

https://github.com/lua-nucleo/lua-nucleo/commit/fb918f68edeedfcecc2deb60e8bda1d65ec97860

But the code is still to be merged to the master.

Alexander.