[#85940] [Ruby trunk Bug#14578] Forking a child process inside of a mutex crashes the ruby interpreter — ben.govero@...
Issue #14578 has been reported by bengovero (Ben Govero).
3 messages
2018/03/05
[#86205] [Ruby trunk Feature#14618] Add display width method to String for CLI — aycabta@...
Issue #14618 has been reported by aycabta (aycabta .).
3 messages
2018/03/19
[#86366] Re: [ruby-cvs:70102] usa:r63008 (trunk): get rid of test error/failure on Windows introduced at r62955 — Eric Wong <normalperson@...>
usa@ruby-lang.org wrote:
3 messages
2018/03/28
[ruby-core:86387] [Ruby trunk Bug#14639] Array#map and lambda arity regression
From:
paul@...
Date:
2018-03-29 05:41:40 UTC
List:
ruby-core #86387
Issue #14639 has been updated by lenwood (Paul Martensen).
That was incredibly quick. Thanks @nobu and @marcandre! :)
----------------------------------------
Bug #14639: Array#map and lambda arity regression
https://bugs.ruby-lang.org/issues/14639#change-71311
* Author: lenwood (Paul Martensen)
* Status: Closed
* Priority: Normal
* Assignee:
* Target version:
* ruby -v: 2.4.1+
* Backport: 2.3: DONTNEED, 2.4: REQUIRED, 2.5: REQUIRED
----------------------------------------
From ruby 2.4.1 onward the following script breaks (ArgumentError):
~~~ ruby
print_three = ->(a, b, c) { puts [a, b, c] }
arr = [[1, 2, 3]]
arr.map(&print_three)
~~~
This now requires explicit destructuring:
~~~ ruby
print_three = ->((a, b, c)) { puts [a, b, c] }
~~~
I guess this comes from a change in enum.c (line 45) from #9605 which seems to be similar.
While digging around I found https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/48193/diff that seems to address this very issue but I'm not sure.
If this is expected behavior feel free to disregard this.
First time posting to ruby trunk so I'm sorry If there is any Information missing.
--
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>