lua-users home
lua-l archive

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


> >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.

Luiz writes:
>you can implement this solution yourself using tag methods as described
>earlier.
>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.

Steve