[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: local function xxx and local yyy= function
- From: Linker <linker.m.lin@...>
- Date: Wed, 31 Dec 2008 10:22:54 +0800
On Wed, Dec 31, 2008 at 03:41, Duncan Cross <email@example.com>
Not at all - what makes you think that? "f" will remain a reference to the local variable until the end of the enclosing scope.
On Tue, Dec 30, 2008 at 7:32 PM, Linker <firstname.lastname@example.org>
But "local f; f " make 'f' be a global variable.
Why lua do not make them(local function xxx and local yyy= function) as the same?