From: maili31s@... (SugHimsi==SUGIHARA Hiroshi) Date: 2003-11-06T07:06:46+09:00 Subject: [ruby-list:38766] Re: ruby-dev summary 21730-21822 /draft すぎむし%env-varなんて(どこかの世界で)使われてるの…。 みなさん未チェックのところを中心に。 On Wed, 5 Nov 2003 19:00 +0900, Minero Aoki wrote: : [ruby-dev:21616] access ENV on $SAFE==4 (contd.) (snip) : Hidetoshi NAGAI posted a summary of the thread in [ruby-dev:21804]. : This entry is an incomplete translation of his summary. この項、以下タブがあったりなかったりなので、‘なし’に揃えては? : : Module#insecure_ref_allowed?(constname) -> bool : Returns true if insecure programs can refer CONSTNAME : constant. , or false if otherwise. : : Module#insecure_ref_denied?(const) : Returns true if CONSTNAME constant is hidden from insecure : programs. 同上 …くどいか? (snip) : * RUBY_PLATFORM, PLATFORM : : Object.deny_insecure_ref(:RUBY_PLATFORM) and : Object.deny_insecure_ref(:PLATFORM) is the default. are : [ruby-dev:21707] drb Hash#each : : Matz found that the Hash#each test case of dRuby is failed on the : latest ruby. ^^ ^^^^^^ トル ruby 1.8.1 (2003-10-26) ですが、どういいましょうか。a recent snapshot? : Matz finally changed Proc#call behavior, now yield and Proc#call , so now ... : produces same results: ^^^ : [ruby-dev:21794] rb_iter_break() on ruby 1.8.1p2 : : MURATA Kenta reported that ruby 1.8.1p2 break the following program: broke (snip) : This is because rb_iter_break() is called in another method frame : is not what the block is executed on. : ※ 「ブロックが実行されているのとは違うフレーム上で : rb_iter_breakが呼ばれたから」と言いたいのですが、 ... because rb_iter_break() was called in a different method frame from which the block is running. ^^^^^^^^^ ^^^^ ^^^^^ : For these kind of purpose, you should use rb_catch() and rb_throw(). : These APIs are described in Pickaxe page 195. ( ). : For the "right" usage of rb_iter_break(), see enum.c. : [ruby-dev:21816] "this method is deprecated" warning messages とばします。 以上 -- SugHimsi == SUGIHARA Hiroshi maili31s@clio.ne.jp