News for hackers. Stuff that matters.
Re:Ruby is not a callable orientated language by blubb on Sunday February 21, 2010 @02:20PM (#1141071)
Ah, I didn't know that Proc.new != proc/lambda :)

They both return Proc objects though, so I wonder if it is possible to "convert" them.

Re:Ruby is not a callable orientated language by carbon8 on Sunday February 21, 2010 @07:13PM (#1141530)
One small note, as pointed out in http://innig.net/software/ruby/closures-in-ruby.rb posted by arohner above: although in 1.8 proc is an alias for lambda, in 1.9 it's now an alias for Proc.new.