[#16708] includedir — nobu.nakada@...
なかだです。
[#16732] sharing sub-regexp — Tanaka Akira <akr@...17n.org>
Oniguruma についてひとつ要望があります。
Tanaka Akiraさんの<hvopu1hxfyd.fsf@coulee.a02.aist.go.jp>から
まつもと ゆきひろです
In article <1017890618.302241.17865.nullmailer@ev.netlab.jp>,
Tanaka Akiraさんの<hvo7knn93ug.fsf@coulee.a02.aist.go.jp>から
In article <20020405044506.D4784349@helium.ruby-lang.org>,
Tanaka Akiraさんの<hvopu1e4omy.fsf@coulee.a02.aist.go.jp>から
In article <20020410025054.C8DF0915@helium.ruby-lang.org>,
In article <hvor8lnchak.fsf@coulee.a02.aist.go.jp>,
前田です。
In article <87pu15z80q.wl@studly.priv.netlab.jp>,
前田です。
In article <87g01x1e6m.wl@studly.priv.netlab.jp>,
西山和広です。
In article <20020416180631.988E.ZN@mbf.nifty.com>,
前田です。
In article <87u1qaj0xe.wl@studly.priv.netlab.jp>,
前田です。
まつもと ゆきひろです
In article <1019116103.420173.12691.nullmailer@picachu.netlab.jp>,
前田です。
なかだです。
In article <200204181023.g3IANgM21124@sharui.nakada.kanuma.tochigi.jp>,
まつもと ゆきひろです
In article <1019140164.869863.14833.nullmailer@picachu.netlab.jp>,
[#16757] === — "Akinori MUSHA" <knu@...>
Array, Hash, Proc などで、 === が以下のように定義されていると
[#16761] StringIO — tadf@...
ふなばです。
なかだです。
ふなばです。
なかだです。
ふなばです。
青山です。
まつもと ゆきひろです
In article <1022740594.117106.6073.nullmailer@picachu.netlab.jp>,
前田です。
In article <874rgqdt3x.wl@studly.priv.netlab.jp>,
青山です。
まつもと ゆきひろです
青山です。
まつもと ゆきひろです
青山です。
まつもと ゆきひろです
青山です。
[#16776] Ruby 1.7.2 segfault — takuma ozawa <metal@...>
小澤といいます。
なかだです。
[#16790] Ruby Shim — "Akinori MUSHA" <knu@...>
1.7 early access kit という仮称で提案した構想ですが、先ほど
新井です。
At Tue, 9 Apr 2002 02:12:27 +0900,
なかだです。
[#16816] remove_const: cannot remove constant — Koji Arai <JCA02266@...>
新井です。
[#16833] math.c 1.10 — "U.Nakamura" <usa@...>
こんにちは、なかむら(う)です。
まつもと ゆきひろです
さくです。
なかだです。
まつもと ゆきひろです
[#16868] make error on debian potato — Wakou Aoyama <wakou@...>
青山です。
[#16869] Makefiles dependency — nobu.nakada@...
なかだです。
わたなべです。
なかだです。
わたなべです。
なかだです。
わたなべです。
なかだです。
[#16894] compile failure in process.c, setpgrp() & setpgid() — Ryo HAYASAKA <ryoh@...>
早坂@北陸先端です.
[#16923] Module::new with block is useful? — "Shin'ya Adzumi" <adzumi@...>
あづみです。
[#16978] Re: [rubyist:1343] Re: another sample for the Method — Koji Arai <JCA02266@...>
新井です。
[#16989] making Proc in C (Re: [rubyist:1356] Re: another sample for the Method) — nobu.nakada@...
なかだです。
[ruby-dev:16916] Re: Ruby Shim
At Mon, 15 Apr 2002 22:38:11 +0900,
nobu.nakada wrote:
> おそらくこのへんは無理じゃないかと思います。
>
> > Object
> > singleton_method_removed
> > singleton_method_undefined
> > Module
> > method_removed
> > method_undefined
> > Symbol
> > Symbol.all_symbols
> > Thread
> > Thread.list
> > keys
> > ThreadGroup
> > list
そうですねえ。次回、 ToDo を更新するときにマーク入れときます。
最初は、実装できないものは raise NotImplementedError を出すだけの
ものを定義したらいいかなと思ったんですが、それだと既存のプログラムで
行っている respond_to? チェックが破綻してしまうのでやめました。
> 簡単なところでこの二つを入れときました。
>
> > Proc
> > yield
> > Symbol
> > intern
どうもありがとうございます。
Proc#yield のテストは、 Proc#call との違いをイラストレートした
ものにした方がよいと思います。(* とか [] を使って)
# でも、いざ考えてみると Proc#yield() の挙動をちゃんと理解して
# いるか自信なくなってしまう。 ;)
それと、これは一般的に言えますが、ブロックを渡してその中で assert
する場合、ブロックが呼ばれること自体をチェックする必要があります。
イテレータのテストでは、返り値から自明というものを除き、呼ばれた
回数や順序も見た方がいいでしょう。
たとえば、 tc_struct.rb の Struct::*#each_pair のテストはこんな
感じにしています。
def test_instance_each_pair
struct_class = Struct.new("ABC", :a, :b, :c)
struct = struct_class.new(1, 2, 3)
i = 0
struct.each_pair { |*x|
case i
when 0
assert_equal([:a, 1], x)
when 1
assert_equal([:b, 2], x)
when 2
assert_equal([:c, 3], x)
else
flunk("unexpected pair: #{x.inspect}")
end
i += 1
}
if i == 0
flunk("block wasn't yielded once.")
end
end
パラノイアックになりすぎるとバランスを欠くので要注意ですが。
> それと、ruby16/doc/features-ruby18.txtってRDで書くってことでいいですよ
> ね。
はい。ただ、これ↓をやったら RDTools でうまくフォーマットでき
なかったので今のようになっているのでした。リストは空行をあけちゃ
いけないのかも。
> - 1. If a default value is given, returns it.
> + (1) If a default value is given, returns it.
>
> - 2. If a block is given, calls it passing the index and returns the
> - block's return value.
> + (2) If a block is given, calls it passing the index and returns the
> + block's return value.
>
> - 3. Otherwise, raises IndexError.
> + (3) Otherwise, raises IndexError.
でも、 RD としてこれで正しいのなら入れてしまってください。
--
/
/__ __ Akinori.org / MUSHA.org
/ ) ) ) ) / FreeBSD.org / Ruby-lang.org
Akinori MUSHA aka / (_ / ( (__( @ iDaemons.org / and.or.jp
"Somewhere out of a memory.. of lighted streets on quiet nights.."