[#78633] ruby/spec needs help from CRuby committers — Benoit Daloze <eregontp@...>
Currently, ruby/spec is maintained mostly by individuals and enjoys the
13 messages
2016/12/13
[#78963] Re: ruby/spec needs help from CRuby committers
— Urabe Shyouhei <shyouhei@...>
2017/01/04
I did ask attendees of last developer meeting to join this
[#78642] Re: ruby/spec needs help from CRuby committers
— Eric Wong <normalperson@...>
2016/12/14
Benoit Daloze <eregontp@gmail.com> wrote:
[ruby-core:78753] [Ruby trunk Bug#12809][Assigned] passing a proc to Kernel#lambda does not create a lambda
From:
shyouhei@...
Date:
2016-12-21 06:00:31 UTC
List:
ruby-core #78753
Issue #12809 has been updated by Shyouhei Urabe.
Status changed from Open to Assigned
Assignee set to Akira Tanaka
----------------------------------------
Bug #12809: passing a proc to Kernel#lambda does not create a lambda
https://bugs.ruby-lang.org/issues/12809#change-62151
* Author: Sylvain Joyeux
* Status: Assigned
* Priority: Normal
* Assignee: Akira Tanaka
* Target version:
* ruby -v: 2.0.0-p643, 2.1.9, 2.2.5, 2.3.1p112, 2.4.0preview2
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
I would expect the following:
~~~
p = proc { |a| a * 2 }
l = lambda(&p)
puts l.lambda? # => true
l.call(1, 2) # => ArgumentError
~~~
But it does not, basically `l` there looks very much like a non-lambda proc (another test is that a return in `p` would cause `l.call` to raise LocalJumpError)
~~~
~~~
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>