lua-users home
lua-l archive

Re: [5.1.4/newbie] "attempt to index ... 'file' (a nil value)"?

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 2011年2月18日 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.

AltStyle によって変換されたページ (->オリジナル) /