[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lua-l
Subject:    =?utf-8?b?UmU6IFtBTk5dIEx1YS1Ow7pjbGVvIDAuMS4w?=
From:       Alexander Gladysh <agladysh () gmail ! com>
Date:       2013-10-28 17:03:58
Message-ID: CABZR_7AmiTHZhzh8Uwsfd6My7EFM34sXnNaevAg6sSF3Rb7YwQ () mail ! gmail ! com
[Download RAW message or body]

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.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic