[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Global by default
- From: Dirk Laurie <dirk.laurie@...>
- Date: Tue, 12 Feb 2013 20:30:57 +0200
2013/2/12 Peter Slížik <email@example.com>:
> Okay, here's the new thread I announced a while ago...
> Lua-users wiki cites Roberto's words:
> "Local by default is wrong. Maybe global by default is also wrong, [but] the
> solution is not local by default."
> Could anybody who understands Lua innards elaborate?
One possible reason might be that Lua only allows so many
local variables, 200 I think, the number must fit into one byte
otherwise the whole VM needs to be redesigned. Whereas
the number of global variables is for all practical purposes