[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [5.1.4/newbie] "attempt to index ... 'file' (a nil value)"?
- From: Gilles Ganault <gilles.ganault@...>
- Date: Fri, 18 Feb 2011 15:09:24 +0100
On Fri, 18 Feb 2011 11:59:32 -0200, Luiz Henrique de Figueiredo
>> 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?
The online PiL is from 2004, and doesn't mention the above