From: ts Date: 2006-09-22T21:25:28+09:00 Subject: Re: proc and lambda >>>>> "S" == Sourav writes: S> Provided of course, I know the differences between Proc.new and lambda S> ~ both proc and lambda seems to behave the way, whereas, Proc.new S> behaves slightly differently. Well, if you think that proc and lambda behave the same, you'll have a surprise one day :-) moulon% ./ruby -ve 'proc { break }.call' ruby 1.9.0 (2006-09-21) [i686-linux] -e:1: break from proc-closure (LocalJumpError) from -e:1:in `Proc#call' from -e:1 moulon% moulon% ./ruby -ve 'lambda { break }.call' ruby 1.9.0 (2006-09-21) [i686-linux] moulon% Guy Decoux