I guess my question is rather simple, what's the difference between
blocks defined with lambda and blocks that aren't?
Cheers!
···
--
Posted via http://www.ruby-forum.com/.
I guess my question is rather simple, what's the difference between
blocks defined with lambda and blocks that aren't?
Cheers!
--
Posted via http://www.ruby-forum.com/.
A simple question but one not so easily answered. Google "ruby blocks
vs procs" and take your pick.
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!
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]:
I guess my question is rather simple, what's the difference between
blocks defined with lambda and blocks that aren't?Cheers!
--
Posted via http://www.ruby-forum.com/\.
--
jan=callcc{|jan|jan};jan.call(jan)