lua-users home
lua-l archive

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


> >
> > (Question: in "a = a + 1", should the second 'a' be a valid "declaration"
> > for the first one?)
> 
> 
> Yes, this is already an issue with strict.lua and a common case is:
> 
> arg = arg or { 'default_first', 'default_second', etc }
> 
> Of course this is valid for any global that you now that *may* exist.

This common case is common at the global level; at the global level,
assignments to any global would be valid.

-- Roberto