General

Profile

hagus (Luke Burton)

Issues

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

Activity

02/11/2009

06:12 AM Ruby Feature #1141 (Rejected): assignment of variable in "right" if statement fails
=begin
In Ruby 1.8

>> p(x) if x=42
(irb):1: warning: found = in conditional, should be ==
NameError: undefined local variable or method `x' for main:Object
from (irb):1

In Ruby 1.9

$ irb19
irb(main):001:0> p (x) i...
hagus (Luke Burton)

Also available in: Atom