[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Implicit Globals - A (better?) compile time solution.
- From: Roberto Ierusalimschy <roberto@...>
- Date: Sun, 24 Feb 2008 09:24:06 -0300
> >
> > (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