Issue #3163 has been updated by caleb clausen.


OK. But now what about similar ambiguous cases, such as:

  p=0; p %[foo]
  p=0; p /foo/x
  p=0; p &foo
  p=0; p *foo
  p=0; p ?f : g
  p=0; p <<foo
123
foo

In each of the above lines, the 2nd p is treated as a variable, as is traditional. Shouldn't these cases also be changed to allow the 2nd p to be a method call? Or is there to be a special case just for colon here?
----------------------------------------
http://redmine.ruby-lang.org/issues/show/3163

----------------------------------------
http://redmine.ruby-lang.org