lua-users home
lua-l archive

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


Everett L Williams II <rett@classicnet.net> writes:

> If local were the default, and items to be used elsewhere had to be
> exported, just think how many other problems would become basically
> impossible.

I don't think that an automatic transformation of

local i=3
do
  i=2
end
print(i)

into

local i=3
do
  local i=2
end
print(i)

is going to cause much enthusiasm among most users.

-- 
David Kastrup