Forum: Ruby lambda vs non-lambda proc

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
9b5420028d06798d30226d8bcccacc5e?d=identicon&s=25 Steve Dogers (stevedogers)
on 2009-03-30 22:14
I guess my question is rather simple, what's the difference between
blocks defined with lambda and blocks that aren't?

Cheers!
E1d641bfe4071a5413bac781f06d3fd1?d=identicon&s=25 Sean O'halpin (sean)
on 2009-03-31 00:13
(Received via mailing list)
On Mon, Mar 30, 2009 at 9:13 PM, Steve Dogers <stevedogers@gmail.com>
wrote:
> I guess my question is rather simple, what's the difference between
> blocks defined with lambda and blocks that aren't?
>
> Cheers!

A simple question but one not so easily answered. Google "ruby blocks
vs procs" and take your pick.
8853f712852b03ba6646b59b1723f44d?d=identicon&s=25 Flower Born (flowerborn)
on 2009-03-31 04:38
(Received via mailing list)
You should read this:
http://innig.net/software/ruby/closures-in-ruby.rb

- J

* Steve Dogers <stevedogers@gmail.com> [2009-03-31 05:13:50 +0900]:
This topic is locked and can not be replied to.