Feature #2293
StringIOにread_nonblcokが欲しいです
| Status: | Closed | Start date: | 10/27/2009 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 100% |
|
| Category: | core | |||
| Target version: | 1.9.2 |
Description
ミムラ aka takkanmです。 RubySpec実施中に気付いたのですが、 1.9系のStringIOにreadpartialは追加されていますが、 read_nonblockが無いです。 read_nonblockは追加されることはないのでしょうか?
Associated revisions
* ext/stringio/stringio.c (Init_stringio): added read_nonblock and
write_nonblock aliases. [ruby-dev:39551]
History
Updated by Yui NARUSE over 2 years ago
- Category set to core
この要望って、APIの互換性という意味でですか? つまり、read_nonblockはreadpartial の alias でいいんですかね。
Updated by 三村 益隆 over 2 years ago
StringIOがIOのエミュレートということならば、 APIの互換性として欲しいと思いました。
Updated by Nobuyoshi Nakada over 2 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r25517. 三村, thank you for reporting this issue. Your contribution to Ruby is greatly appreciated. May Ruby be with you.