lua-users home
lua-l archive

Re: Forward function declarations - relocal command

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


On Tuesday, November 20, 2012 06:03:31 AM David Favro wrote:
> 
> local rv1;
> repeat
> relocal rv1, rv2 = foo();
> until rv2;
> -- use rv1 here...
> 
But now you're saying that rv2 is a relocal when it's really just local to the 
repeat block. And what happens if you add a `local rv2` in the outer block; 
you've broken the locality of the loop variable.
-- 
tom <telliamed@whoopdedo.org>

AltStyle によって変換されたページ (->オリジナル) /