[#88925] [Ruby trunk Feature#15095] [PATCH] share VM stack between threads and fibers if identical — ko1@...
Issue #15095 has been updated by ko1 (Koichi Sasada).
4 messages
2018/09/09
[#88927] Re: [Ruby trunk Feature#15095] [PATCH] share VM stack between threads and fibers if identical
— Eric Wong <normalperson@...>
2018/09/09
ko1@atdot.net wrote:
[#88926] [Ruby trunk Feature#15095] [PATCH] share VM stack between threads and fibers if identical — ko1@...
Issue #15095 has been updated by ko1 (Koichi Sasada).
3 messages
2018/09/09
[#89218] [Ruby trunk Bug#15130] open-uri hangs on cygwin — duerst@...
Issue #15130 has been updated by duerst (Martin D端rst).
5 messages
2018/09/30
[ruby-core:89211] [Ruby trunk Bug#15174][Rejected] Sorting array of elements using "&:size" block, in which more than 1 element
From:
nobu@...
Date:
2018-09-28 22:45:20 UTC
List:
ruby-core #89211
Issue #15174 has been updated by nobu (Nobuyoshi Nakada).
Status changed from Open to Rejected
An expected behavior.
----------------------------------------
Bug #15174: Sorting array of elements using "&:size" block, in which more than 1 element
https://bugs.ruby-lang.org/issues/15174#change-74235
* Author: Mr_Cartoon (Sviat Safronov)
* Status: Rejected
* Priority: Normal
* Assignee:
* Target version:
* ruby -v: 2.5.1, 2.6.0-preview2
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
Example with ranges(first with what defined bug), but also tested on strings, symbols, integers
Good
~~~ ruby
[1..2].sort { |x| x.size }
[1..2, 4..5].sort { |x| x.size }
[1..2].sort(&:size)
~~~
Bad
~~~ ruby
[1..2, 4..5].sort(&:size)
~~~
Traceback (most recent call last):
4: from /home/sviat/.rvm/rubies/ruby-2.6.0-preview2/bin/irb:11:in `<main>'
3: from (irb):3
2: from (irb):3:in `sort'
1: from (irb):3:in `size'
ArgumentError (wrong number of arguments (given 1, expected 0))
Tested ruby versions: 2.5.1, 2.6.0-preview2
--
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>