From: "Kent S." Date: 2004-04-04T02:52:45+09:00 Subject: Re: Learning Ruby, was a C geek... lambda is almost the same thing as Proc.new. Consider this: irb(main):001:0> l = lambda{ break } => # irb(main):002:0> l.call => nil irb(main):003:0> p = Proc.new { break } => # irb(main):004:0> p.call LocalJumpError: break from proc-closure from (irb):3:in `call' from (irb):4 Cheers, Kent On Apr 3, 2004, at 2:43 AM, Gregory Millam wrote: > > 'proc' is an alias for lambda, but I believe it's to be phased out > because of proc/Proc confusin. and lambda is really just "Proc.new" > > c = Proc.new { |n| 1+n } > > These blocks, with 'yield,' are among my favorite things about ruby. > =). > > - Greg > Cheers, Kent.