lua-users home
lua-l archive

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


On Thu, Jul 15, 2010 at 2:34 PM, Jim Whitehead II <jnwhiteh@gmail.com> wrote:
> When Roberto introduced this, he said that the checking wouldn't be
> turned on until the keyword was used (or some other trigger happened).

That feels awkward.  This is more a job for an explicit up-front
pragma (OPTION EXPLICIT, anyone? ;))

'global function' feels over-verbose as well.  To be consistent:

global function alice()
   global fred
   fred()
end

global function fred()
 ...
end

The 'global fred' forward declaration is a nice bit of documentation, however

steve d.