Re: metatable and closure
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: metatable and closure
- From: Roberto Ierusalimschy <roberto@...>
- Date: 2002年4月18日 15:42:50 -0300
> But is there a difference between theses two lua codes :
> "f = foo.bar; v = f()" and "v = foo.bar()"
> I've made test with theses two call and obtain different result and I
> don't understand why.
Are you sure about that? Is `f' a local variable? Both forms should be
completely equivalent...
-- Roberto