Issue #5966 has been updated by Nobuyoshi Nakada.

File 0001-Bug-5966-lambda-in-BasicObject.patch added
Status changed from Open to Assigned
Assignee set to Koichi Sasada

I'm not sure why FCALL is dealt specially in op_send.
It doesn't seem needed if self is put instead of nil.
----------------------------------------
Bug #5966: ->{} doesn't work in BasicObject
https://bugs.ruby-lang.org/issues/5966

Author: Kazuki Tsujimoto
Status: Assigned
Priority: Normal
Assignee: Koichi Sasada
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-02-03 trunk 34424) [x86_64-linux]


=begin
 $ ./ruby -ve 'BasicObject.new.instance_eval { ->{} }'
 ruby 2.0.0dev (2012-02-03 trunk 34424) [x86_64-linux]
 -e:1:in `block in <main>': undefined method `lambda' for #<BasicObject:0x007ffff847ef28> (NoMethodError)
         from -e:1:in `instance_eval'
         from -e:1:in `<main>'

I'm not sure it is a bug or not, but I think lambda syntax should work everywhere.
=end



-- 
http://bugs.ruby-lang.org/