tsmith (Tim Smith)
- Login: tsmith
- Email: timsmith3@gmail.com
- Registered on: 09/16/2015
- Last sign in: 02/02/2017
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 2 | 2 |
Activity
02/02/2017
-
05:54 AM Ruby Bug #13181 (Closed): Unexpected line in rescue backtrace
- ~~~ ruby
def foo # 1
puts 'hello' # 2
raise 'x' # 3
puts 'goodbye' # 4
rescue # 5
raise 'y' # 6
end # 7
# 8
foo # 9
~~~
~~~
hello
b...
09/17/2015
-
04:55 PM Ruby Feature #11534: Circular assignment / method shadowing unexpected behavior
- Then consider it a feature request ;) First evaluate the righthand side, then make the variable.
09/16/2015
-
11:18 PM Ruby Feature #11534 (Rejected): Circular assignment / method shadowing unexpected behavior
- ~~~ruby
def foo
1
end
puts foo + 1
bar = foo + 1
puts bar
foo = foo + 1
puts foo
~~~
~~~
# EXPECTED
2
2
2
~~~
~~~
# ACTUAL
2
2
undefined method `+' for nil:NilClass (NoMethodError)