From: Colin Bartlett Date: 2010-08-18T06:23:15+09:00 Subject: Re: question on if / defined?() --0016e6d588b907470f048e0b873e Content-Type: text/plain; charset=ISO-8859-1 On Tue, Aug 17, 2010 at 6:30 PM, John Sikora wrote: > Rick Denatale wrote: > > Because x is defined, this happens at parse time so it doesn't matter > > if the assignment is executed or not. > > Is this because when the parser sees 'x = ...', Ruby automatically > assigns a reference to the variable x? > I think that's correct, but I'd welcome confirmation from those more knowledgeable about this. irb x #=> NameError: undefined local variable or method 'x' for main:Object x = x #=> nil Sort of assigning itself by it's own bootstraps? --0016e6d588b907470f048e0b873e--