[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: locals again
- From: Steve Dekorte <steve@...>
- Date: Sun, 14 Dec 97 14:00:19 -0800
> >Here's another solution, no globals - actually only one global table named
> >'global' or 'lobby' or something. This would also make Lua more consistant
> >and eliminate the need for global apis and local variable declarations.
>you can implement this solution yourself using tag methods as described
>but you'll still have the same problems:
>global.test_one = 1;
>global.test_two = 2;
>global.test_tree = 3;
Not really - the problem was in confusing globals with locals.
In my scheme that's not possible.
You can still confuse locals with locals and globals with globals,
but not with each other anymore.