* PANIC: unprotected error in call to Lua API
@ 2011-01-14 15:54 Peter Münster
2011-01-14 16:00 ` Hans Hagen
0 siblings, 1 reply; 4+ messages in thread
From: Peter Münster @ 2011-01-14 15:54 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hello,
With the latest version and the following test-file "test.cld":
--8<---------------cut here---------------start------------->8---
local t = {}
package.seeall(t)
setfenv(0, t)
context.starttext()
context"bla"
context.stoptext()
--8<---------------cut here---------------end--------------->8---
I get this error:
PANIC: unprotected error in call to Lua API (attempt to index a nil value)
--
Peter Münster
Contact information: http://pmrb.free.fr/contact/
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: PANIC: unprotected error in call to Lua API
2011-01-14 15:54 PANIC: unprotected error in call to Lua API Peter Münster
@ 2011-01-14 16:00 ` Hans Hagen
2011-01-14 16:51 ` Peter Münster
0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2011-01-14 16:00 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Peter Münster
On 14-1-2011 4:54, Peter Münster wrote:
> Hello,
>
> With the latest version and the following test-file "test.cld":
>
> --8<---------------cut here---------------start------------->8---
> local t = {}
> package.seeall(t)
> setfenv(0, t)
> context.starttext()
> context"bla"
> context.stoptext()
> --8<---------------cut here---------------end--------------->8---
>
> I get this error:
> PANIC: unprotected error in call to Lua API (attempt to index a nil value)
what do you want to achieve with the first three lines
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: PANIC: unprotected error in call to Lua API
2011-01-14 16:00 ` Hans Hagen
@ 2011-01-14 16:51 ` Peter Münster
2011-01-14 18:15 ` Hans Hagen
0 siblings, 1 reply; 4+ messages in thread
From: Peter Münster @ 2011-01-14 16:51 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hans Hagen <pragma@wxs.nl> writes:
> On 14-1-2011 4:54, Peter Münster wrote:
>> local t = {}
>> package.seeall(t)
>> setfenv(0, t)
> what do you want to achieve with the first three lines
I want to prevent pollution of the global environment, when I need to
define my own globals. But of course, I can do that with a name-space
prefix, that's what I'm doing now.
I've just posted the error, because perhaps it reveals a bug somewhere.
--
Peter Münster
Contact information: http://pmrb.free.fr/contact/
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: PANIC: unprotected error in call to Lua API
2011-01-14 16:51 ` Peter Münster
@ 2011-01-14 18:15 ` Hans Hagen
0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2011-01-14 18:15 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Peter Münster
On 14-1-2011 5:51, Peter Münster wrote:
> Hans Hagen<pragma@wxs.nl> writes:
>
>> On 14-1-2011 4:54, Peter Münster wrote:
>
>>> local t = {}
>>> package.seeall(t)
>>> setfenv(0, t)
>
>> what do you want to achieve with the first three lines
>
> I want to prevent pollution of the global environment, when I need to
> define my own globals. But of course, I can do that with a name-space
> prefix, that's what I'm doing now.
>
> I've just posted the error, because perhaps it reveals a bug somewhere.
in lua 5.2 the environment related mechanism will change a bit anyway so
best not depend on that now
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-01-14 18:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-14 15:54 PANIC: unprotected error in call to Lua API Peter Münster
2011-01-14 16:00 ` Hans Hagen
2011-01-14 16:51 ` Peter Münster
2011-01-14 18:15 ` Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).