ruby-changes:48416
From: kazu <ko1@a...>
Date: Sun, 29 Oct 2017 01:34:34 +0900 (JST)
Subject: [ruby-changes:48416] kazu:r60530 (trunk): Add note to close_{read, write} too
kazu 2017-10-29 01:34:30 +0900 (Sun, 29 Oct 2017) New Revision: 60530 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60530 Log: Add note to close_{read,write} too when call on closed stream [ci skip] Modified files: trunk/io.c Index: io.c =================================================================== --- io.c (revision 60529) +++ io.c (revision 60530) @@ -4807,6 +4807,8 @@ rb_io_closed(VALUE io) https://github.com/ruby/ruby/blob/trunk/io.c#L4807 * * prog.rb:3:in `readlines': not opened for reading (IOError) * from prog.rb:3 + * + * Calling this method on closed IO object is just ignored since Ruby 2.3. */ static VALUE @@ -4867,6 +4869,8 @@ rb_io_close_read(VALUE io) https://github.com/ruby/ruby/blob/trunk/io.c#L4869 * prog.rb:3:in `write': not opened for writing (IOError) * from prog.rb:3:in `print' * from prog.rb:3 + * + * Calling this method on closed IO object is just ignored since Ruby 2.3. */ static VALUE -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/