General

Profile

GeorgeMillo (George Millo)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

05/03/2015

06:17 AM Ruby Bug #11115 (Rejected): Assigning a non-existent local variable to itself sets it to nil; unintuitive behaviour?
Here's what normally happens when I try to reference a local variable that doesn't exist:
~~~ruby
def foo
bar
end
foo
# => NameError: undefined local variable or method `bar'
~~~
But if I assign bar to "itself", it doesn'...
GeorgeMillo (George Millo)

Also available in: Atom