S
Simon Strandgaard
Today I upgraded from Ruby-1.8.0 to Ruby-1.8.1
this construction works with 1.8.0:
puts ("-"*40) + "\nattempting to match at I#{@position_input}"
But Ruby-1.8.1 conplains about it, and says:
../scanner.rb:249: warning: don't put space before argument parentheses
and result of the parentesis is 'nil'...
However changing it into this.. then it works
s = "-"*40
puts s + "\nattempting to match at I#{@position_input}"
I don't understand why parentesis don't work the same way ?
this construction works with 1.8.0:
puts ("-"*40) + "\nattempting to match at I#{@position_input}"
But Ruby-1.8.1 conplains about it, and says:
../scanner.rb:249: warning: don't put space before argument parentheses
and result of the parentesis is 'nil'...
However changing it into this.. then it works
s = "-"*40
puts s + "\nattempting to match at I#{@position_input}"
I don't understand why parentesis don't work the same way ?