[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: one more little thing about upvalues
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 02 Jun 2003 09:38:33 -0300
> Is this right? Is this the only way? Will it work just the same?
Yes, yes(?), yes. The following construction in Lua4.0
function foo (...)
... %x ...
end
is exactly equivalent to the next one in Lua5.0 (as long as _x_ is a new
name):
local _x_ = x
function foo (...)
... _x_ ...
end
> (BTW, a question to Roberto: how high is the finishing of THE BOOK in
> your priority list? ;-)
In my priority list it is very high. But it does not seem to be very
high in publishers' lists ;)
-- Roberto