On 9/17/07, David A. Black <dblack / rubypal.com> wrote: > Hi -- > > On Mon, 17 Sep 2007, Summercool Summercool wrote: > > <snip> > > > > (as described in the PickAx2 book, p. 329) > > > > So at first I thought a Ruby program is interpreted? If interpreted, > > then the interpreter will see the "a = 1" at first as treat "a" as a > > variable, and then the second time it sees "a", the interpreter should > > treat it as a variable again, not as a method. > > No, because there's no such variable in scope. The second time through > the loop, there's no assignment to a, and the first variable a has > gone out of scope. so this is lexical scoping, then? > So the only thing that "a" could mean, outside of > an assignment, is the method a. > > > David > -jf -- In the meantime, here is your PSA: "It's so hard to write a graphics driver that open-sourcing it would not help." -- Andrew Fear, Software Product Manager, NVIDIA Corporation http://kerneltrap.org/node/7228