lua-users home
lua-l archive

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




On Wed, Dec 31, 2008 at 03:41, Duncan Cross <duncan.cross@gmail.com> wrote:

On Tue, Dec 30, 2008 at 7:32 PM, Linker <linker.m.lin@gmail.com> wrote:
But "local f;" make 'f' be a global variable.

Not at all - what makes you think that? "f" will remain a reference to the local variable until the end of the enclosing scope.
Oh,my mistaken.

Why lua do not make them(local function xxx and local yyy= function) as the same?

-Duncan



--
Regards,
Linker Lin
linker.m.lin@gmail.com