[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: local by default?
- From: Reuben Thomas <rrt@...>
- Date: Mon, 29 Apr 2002 18:49:10 +0100 (BST)
> this is simple is there is no local value then try a global value if
> there is no global then create a local value.
But what if you wanted to read an unitialised local?
while ... do
if foo then ...
foo = bar ()
here, I clearly want foo to be local, without declaring it. But you're
forcing it to be global. That doesn't sound like local by default!
http://www.mupsych.org/rrt/ | maxim, n. wisdom for fools