> > Thanks for the feedback. I would prefer a third way:
> >
> > luaK_semerror(ls, LUA_ENV " is global when accessing variable '%s'",
> >
> > -- Roberto
>
> Ok, you win.
Actually, I am not sure I prefer this :-) To know this code is safe we
need to know that LUA_ENV is a valid variable name and, therefore, cannot
contain a '%'. In the end, it is more complex than it looks.
-- Roberto