From: Thomas Hafner Date: 2009-04-26T06:20:03+09:00 Subject: anonymous class, body defined by Proc.new vs. lambda Hello, this is OK for both, Ruby 1.8 and 1.9: f = Proc.new{}; Class.new(&f) But why is that valid for Ruby 1.8 only? f = lambda{}; Class.new(&f) Ruby 1.9 complains `initialize': wrong number of arguments (1 for 0) (ArgumentError) from ./now.rb:21:in `new' from ./now.rb:21:in `
' Regards Thomas