lua-users home
lua-l archive

Re: [CFD] Local functions for Lua 4.1

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


> So, what do you think about this proposal? Discussion opened :-)
>
> Ciao, ET.
A slippery slope, this proper lexical scoping...
It's a sound proposal, but what about backwards compatibility? How much
code is out there doing "function x()" at the top scope and expecting to
generate a global?
Someday it would nice to have a mechanism for gradually introducing
incompatibilities like Python's "__future__" module
(http://python.sourceforge.net/peps/pep-0236.html).
-John

AltStyle によって変換されたページ (->オリジナル) /