From: eklerni Date: 2007-10-14T02:08:34+09:00 Subject: [ruby-dev:32052] Re: printでの$,の挙動 eklerniです。 > なかだです。 > > At Sun, 14 Oct 2007 00:43:02 +0900, > eklerni wrote in [ruby-dev:32050]: > >> この変更は意図したものでしょうか?なんとなく正規表現周りの >> 仕様変更な気もしますが、言及した記述を見つけられませんでした。 >> > > nilの出力の変更絡みじゃないでしょうか。 > > > 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 - 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)) { > > nilの出力関係の変更をしたときに挙動が変わってしまったということでしょうか。 意図した変更ではないだろうということですね。 ありがとうございました。