lua-users home
lua-l archive

Re: local by default?

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


> So would many of us. But there are problems, e.g. do you have to declare
> all globals inside every function? Every block? In particular, what about
> global functions you call? Then there's backwards compatibility to worry
> about...
I think the best thing would be to default to local for read and write of
variables having read access to globals by default and have to declare write
access. 
Russ

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