< :前の番号
^ :番号順リスト
> :次の番号
P :前の記事
N :次の記事
|<:スレッドの先頭
>|:次のスレッド
^ :返事先
_:自分への返事
>:同じ返事先を持つ記事(前)
<:同じ返事先を持つ記事(後)
---:分割してスレッド表示、再表示
| :分割して(縦)スレッド表示、再表示
~ :スレッドのフレーム消去
.:インデックス
..:インデックスのインデックス
Hi,
At Tue, 5 Jun 2007 13:37:08 +0900,
David Flanagan wrote in [ruby-core:11401]:
> Can anyone construct two proc objects p1 and p2, without using clone or
> dup, so that p1==p2 but p1.object_id != p2.object_id?
p proc{} == proc{}
> Based on this, I would think that:
>
> lambda {|x| x*x } == lambda {|x| x*x }
>
> But this expression return false in both ruby 1.8 and 1.9.
Procs have each own contexts.
--
Nobu Nakada