[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [5.1.4/newbie] "attempt to index ... 'file' (a nil value)"?
- From: Axel Kittenberger <axkibe@...>
- Date: Fri, 18 Feb 2011 15:19:11 +0100
Chap. 14.2 in the book does, but it doesn't mention etc/strict.lua,
didn't notice a forward link in the errors chap.
Would be a good idea for that cookbook :)
On Fri, Feb 18, 2011 at 3:09 PM, Gilles Ganault <gilles.ganault@free.fr> wrote:
> On Fri, 18 Feb 2011 11:59:32 -0200, Luiz Henrique de Figueiredo
> <lhf@tecgraf.puc-rio.br> wrote:
>>> Best is to add a metatable to globals _G that errors on index.
>>
>>See also etc/strict.lua which does this and more.
>
> Speaking of which, is there a good article/tutorial/chapter for
> newbies on debugging Lua scripts, besides Chapter 8 in the PiL?
>
> www.lua.org/pil/index.html#8
>
> The online PiL is from 2004, and doesn't mention the above
> suggestions.
>
> Thank you.
>
>
>