printでの$,の挙動

eklernie$B$G$9!#e(B

e$B%j%U%!%l%s%9%^%K%e%"%kJT=8$K5$$E$$$?$3$H$K$D$$$F$N<ALd$G$9!#e(B
1.9.0e$B$G$Oe(Bprinte$B$G$Ne(B$,e$B$N5sF0$,0J2<$N$h$&$KJQ$o$C$F$$$^$9!#e(B

$, =
$\ =
print input1,input2

#ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-mswin32]
#=> input1input2

#ruby 1.9.0 (2007-10-13 patchlevel 0) [i386-mswin32_80]
#=> input1input2

e$B$3$NJQ99$O0U?^$7$?$b$N$G$7$g$&$+!)$J$s$H$J$/@55,I=8=<~$j$Ne(B
e$B;EMMJQ99$J5$$b$7$^$9$,!"[email protected]$7$?5-=R$r8+$D$1$i$l$^$;$s$G$7$?!#e(B

e$B$h$m$7$/$*4j$$$7$^$9!#e(B

[email protected]$G$9!#e(B

At Sun, 14 Oct 2007 00:43:02 +0900,
eklerni wrote in [ruby-dev:32050]:

e$B$3$NJQ99$O0U?^$7$?$b$N$G$7$g$&$+!)$J$s$H$J$/@55,I=8=<~$j$Ne(B
e$B;EMMJQ99$J5$$b$7$^$9$,!"[email protected]$7$?5-=R$r8+$D$1$i$l$^$;$s$G$7$?!#e(B

nile$B$N=PNO$NJQ99Mm$_$8$c$J$$$G$7$g$&$+!#e(B

Index: io.c

io.c (revision 13692)
+++ io.c (working copy)
@@ -3874,8 +3874,8 @@ rb_io_print(int argc, VALUE *argv, VALUE
}
for (i=0; i<argc; i++) {

  • rb_io_write(out, argv[i]);
  • if (!NIL_P(rb_output_fs)) {
  • if (!NIL_P(rb_output_fs) && i>0) {
    rb_io_write(out, rb_output_fs);
    }
  • rb_io_write(out, argv[i]);
    }
    if (argc > 0 && !NIL_P(rb_output_rs)) {

eklernie$B$G$9!#e(B

  • if (!NIL_P(rb_output_fs) && i>0) {
    rb_io_write(out, rb_output_fs);
    }
  • rb_io_write(out, argv[i]);
    }
    if (argc > 0 && !NIL_P(rb_output_rs)) {

nile$B$N=PNO4X78$NJQ99$r$7$?$H$-$K5sF0$,JQ$o$C$F$7$^$C$?$H$$$&$3$H$G$7$g$&$+!#e(B
e$B0U?^[email protected]$m$&$H$$$&$3$H$G$9$M!#e(B
e$B$"$j$,$H$&$4$6$$$^$7$?!#e(B

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