lua-users home
lua-l archive

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

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

-- | impatience, n.  the urge to do nothing