lua-users home
lua-l archive

Re: local by default?

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


> 	Only if there is a global named foo.
And how are you supposed to know?
> Also you could initialize a local
> value with nil before entering the loop like this:
Then I may as well declare "local foo" and have done!
-- 
http://www.mupsych.org/rrt/ | aphorism, n. a wise lie

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