[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: tracing Lua API calls
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 23 Mar 2000 14:19:46 -0300 (EST)
>From: "Vincent Penquerc'h" <vincent@calcaphon.com>
>I'd like to take this occasion to point out that, in my own
>experience, some of the most troublesome errors are typos in
>identifiers. Since Lua is interpreted, compiling a program
>does not ensure all routines it will call are defined.
This issue has been discussed before.
Look for $global or something like that in the archives.
>Nonetheless, it would be nice to have some sort of bugtracking
>program which would try to detect those typos.
The "getglobal" tag method is useful for this.
See the FAQ 3.1: http://www.tecgraf.puc-rio.br/lua/faq.html#3.1
>For the moment,
>I'm using a plain and simple identifier filter, which scans
>a Lua for them, and then pipes with sort and uniq. This is
>error prone though. I don't see a way this could be done
>automatically though...
See lua/test/globals.lua.
--lhf