[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Why are people so afraid of globals?
- From: steve donovan <steve.j.donovan@...>
- Date: Fri, 9 Jul 2010 19:05:40 +0200
On Fri, Jul 9, 2010 at 6:42 PM, Everett L Williams II
> constructed. I am not sure that something like lua can be fully statically
> analyzed, but the rule structure for variable reference can certainly be
> made much simpler and more likely to yield to simpler analysis than is now
Full analysis is probably impossible, but static analysis can be
'good enough' for most purposes. It's certainly a lot easier if we
have only have local refs to deal with.
But, there is a limit of about 200 for the number of local variables
per chunk  So one could realistically hit some hard limits.
 http://lua-users.org/lists/lua-l/2008-02/msg01256.html (Norman Ramsey)