[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: global keyword instead of local
- From: Reuben Thomas <Reuben.Thomas@...>
- Date: Wed, 13 Sep 2000 12:04:25 +0100 (BST)
> Incidentally, the scoping rules of both Lua and Python also mean
> that defining recursive local functions is not straightforward,
> because the variable holding the function object is not visible to
> the function!
This too is awkward in Lua, and having full lexical scoping (and removing
the rather awkward "upvalues") would be good. What's the problem with
passing non-fixed environments around with closures?
--
http://sc3d.org/rrt/ | impatience, n. the urge to do nothing