[Bug #432] func (x,y)

Bug #432: func (x,y)
http://redmine.ruby-lang.org/issues/show/432

e$B5/I<<Te(B: Shyouhei U.
e$B%9%F!<%?%9e(B: Open, e$BM%@hEYe(B: Normal

e$B0J2<$N%3!<%I$,e(Bparse errore$B$G$9!#e(B

% ~/target/trunk/bin/ruby -ve ‘p (1,2)’
ruby 1.9.0 (2008-08-13 revision 17576) [x86_64-linux]
-e:1: syntax error, unexpected ‘,’, expecting ‘)’
p (1,2)
^
-e:1: warning: useless use of a literal in void context

e$B$b$A$m$se(B1.8e$B$G$ODL$j$^$9!#e(B

% ~/target/branches/ruby_1_8/bin/ruby -ve ‘p (1,2)’
ruby 1.8.7 (2008-08-12 revision 17572) [x86_64-linux]
-e:1: warning: don’t put space before argument parentheses
1
2

e$B%A%1%C%He(B #432 e$B$,99?7$5$l$^$7$?!#e(B (by Yukihiro M.)

e$B%9%F!<%?%9e(B Opene$B$+$ie(BRejectede$B$KJQ99e(B

1.9e$B$G$N;EMMJQ99$G$9!#e(B

1.8e$B$G$O0z?t$N3g8L$NA0$K6uGr$,$"$C$F$b!"=c?h$K%a%=%C%I0z?t$H$_$J$7$^$7$?$,!"e(B1.9e$B$G$O$3$l$O3g8L$G0O$^$l$?C10l$N<0$H8+$J$7$^$9!#$3$l$Oe(B

p (n+5).abs

e$B$N$h$&$J8F$S=P$7$re(B

p((n+5).abs)

e$B$N$h$&$K2r<a$9$k$?$a$G$9!#$G$9$+$i!"$/$l$0$l$be(BRubye$B$G$O%a%=%C%I8F$S=P$7$N3g8L$NA0$K6uGr$rF~$l$J$$$h$&$K$*4+$a$7$^$9!#e(B


http://redmine.ruby-lang.org/issues/show/432

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs