lua-users home
lua-l archive

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


Steve,

I hate to say it, but your reference is nothing but a pile of opinion that varies all around the globe, and has little to do with what I proposed. Local by default would be local to the scope within which it is defined. That's not so difficult. Globals would not exist. Variables can be shared, but always explicitly, both on the giving and the receiving side. With that, lexical scoping would basically disappear as an issue.

Everett L.(Rett) Williams II



steve donovan wrote:
On Tue, Aug 10, 2010 at 6:57 PM, Everett L Williams II
<rett@classicnet.net> wrote:
  
Since that is not what I proposed, I doubt that it would cause much
enthusiasm, either. All declarations would be local by default, not
requiring the local keyword, and things like print(i) would be prefixed.
    
We've been here before, and there's a wiki page all about it:

http://lua-users.org/wiki/LocalByDefault

steve d.