[#46184] [ruby-trunk - Bug #7095][Open] Non-recursive marking — "authorNari (Narihiro Nakamura)" <authorNari@...>
6 messages
2012/10/01
[#46189] [ruby-trunk - Bug #7100][Open] WEBrick::HTTPServer.new で BindAddress を指定しない場合に必ず警告が記録される — "sho-h (Sho Hashimoto)" <sho-h@...>
5 messages
2012/10/02
[#46203] [ruby-trunk - Bug #7111][Open] New build option to enable/disable global method caching — "shugo (Shugo Maeda)" <redmine@...>
5 messages
2012/10/06
[#46258] [ANN] 2.0.0 feature freeze — Yusuke Endoh <mame@...>
Japanese later; 日本語は後で
5 messages
2012/10/24
[#46309] [ruby-trunk - Bug #2154][Assigned] filesystem encoding of UNIX — "usa (Usaku NAKAMURA)" <usa@...>
13 messages
2012/10/29
[#46310] Re: [ruby-trunk - Bug #2154][Assigned] filesystem encoding of UNIX
— Tanaka Akira <akr@...>
2012/10/29
2012年10月29日 10:31 usa (Usaku NAKAMURA) <[email protected]>:
[#46366] Re: [ruby-trunk - Bug #2154][Assigned] filesystem encoding of UNIX
— "U.Nakamura" <usa@...>
2012/11/02
こんにちは、なかむら(う)です。
[#46375] Re: [ruby-trunk - Bug #2154][Assigned] filesystem encoding of UNIX
— KOSAKI Motohiro <kosaki.motohiro@...>
2012/11/02
>> とくに指定しなければ、default external は locale から設定されるので、
[#46376] Re: [ruby-trunk - Bug #2154][Assigned] filesystem encoding of UNIX
— Urabe Shyouhei <shyouhei@...>
2012/11/02
On 11/02/2012 01:56 PM, KOSAKI Motohiro wrote:
[#46396] Re: [ruby-trunk - Bug #2154][Assigned] filesystem encoding of UNIX
— "U.Nakamura" <usa@...>
2012/11/05
こんにちは、なかむら(う)です。
[ruby-dev:46287] [ruby-trunk - Feature #2674] RubyVM::InstructionSequence to accept IOs
From:
"shyouhei (Shyouhei Urabe)" <shyouhei@...>
Date:
2012-10-26 23:30:22 UTC
List:
ruby-dev #46287
Issue #2674 has been updated by shyouhei (Shyouhei Urabe). ko1 (Koichi Sasada) wrote: > これ,どうでしょう. > 卜部君にお願いすればいいでしょうか. はい。遅くならないうちに入れます。 それはそうとしてGlass_Sagaはにコミット権をあげた方が便利ではないかという気がしています。 ---------------------------------------- Feature #2674: RubyVM::InstructionSequence to accept IOs https://bugs.ruby-lang.org/issues/2674#change-31721 Author: shyouhei (Shyouhei Urabe) Status: Assigned Priority: Normal Assignee: shyouhei (Shyouhei Urabe) Category: YARV Target version: 2.0.0 =begin RipperはRipper#initializeでIOを受け付けますが、ISeqはそうはなっていません。 非対称なのでISeqもIOを受け付けるようにするのはどうでしょうか。 Signed-off-by: Urabe, Shyuohei <[email protected]> --- iseq.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/iseq.c b/iseq.c index 3c957c7..2d86f5d 100644 --- a/iseq.c +++ b/iseq.c @@ -538,10 +538,14 @@ rb_iseq_compile_with_option(VALUE src, VALUE file, VALUE line, VALUE opt) rb_compile_option_t option; const char *fn = StringValueCStr(file); int ln = NUM2INT(line); - NODE *node = parse_string(StringValue(src), fn, ln); + NODE *node; rb_thread_t *th = GET_THREAD(); make_compile_option(&option, opt); + if (rb_obj_respond_to(src, rb_intern("gets"), 0)) + node = rb_compile_file(fn, src, ln); + else + node = rb_compile_string(fn, StringValue(src), ln); if (th->base_block && th->base_block->iseq) { return rb_iseq_new_with_opt(node, th->base_block->iseq->name, file, line, th->base_block->iseq->self, -- 1.6.0.4 =end -- http://bugs.ruby-lang.org/