From: Marcello Barnaba Date: 2007-02-13T12:12:31+09:00 Subject: Re: What is Proc#== Hi, On Tuesday 13 February 2007 03:59, George Ogata wrote: > There is one exception: empty procs are the "same" no matter how > they're constructed: > > � lambda{} == lambda{} �#=> true > > As opposed to: > > � lambda{nil} == lambda{nil} �#=> false it is worth noting the "address" of the empty proc being 0 (NULL? :) >> lambda{} => # but I do not understand why: >> [lambda{}.object_id, lambda{}.object_id] => [-606913178, -606913188] and: >> lambda{} === lambda{} => true ? rdoc says that Proc uses Module's ===, shouldn't that check for object identity? what's going on? -- pub 1024D/8D2787EF 723C 7CA3 3C19 2ACE 6E20 9CC1 9956 EB3C 8D27 87EF