Re: Convenient undefined variable checking script
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Convenient undefined variable checking script
- From: Jorge <xxopxe@...>
- Date: 2013年1月23日 14:27:38 -0200
On 01/23/2013 02:02 PM, steve donovan wrote:
Very much so. This is a consequence of hacking away until something
seems to work; something else may stop working ;)
"If it's not broken, you haven't finished yet" :)
I think that if that 2 becomes 1 then your problem will disappear.
Indeed.
The script will then not be able to warn about writes to subfields of
global tables, but let's make it solid first.
A case i'm not sure what to do (under 5.1):
-------------------------------------
table.pack = table.pack or function() end
table.pack()
-------------------------------------
$ lua globalsplus.lua u.lua
globals: u.lua:1: undefined get table.pack
globals: u.lua:2: undefined get table.pack
Jorge