ruby-changes:63104
From: Koichi <ko1@a...>
Date: Fri, 25 Sep 2020 16:00:30 +0900 (JST)
Subject: [ruby-changes:63104] 25cfb0c040 (master): Range is based on Struct.
https://git.ruby-lang.org/ruby.git/commit/?id=25cfb0c040 From 25cfb0c04007137e2dc6d82c2dadea067498f39a Mon Sep 17 00:00:00 2001 From: Koichi Sasada <ko1@a...> Date: Fri, 25 Sep 2020 14:16:30 +0900 Subject: Range is based on Struct. Range can be shareable because it is implemented by Struct. diff --git a/bootstraptest/test_ractor.rb b/bootstraptest/test_ractor.rb index 5ed8f63..ff99521 100644 --- a/bootstraptest/test_ractor.rb +++ b/bootstraptest/test_ractor.rb @@ -448,6 +448,9 @@ assert_equal "ok", %q{ https://github.com/ruby/ruby/blob/trunk/bootstraptest/test_ractor.rb#L448 [{a: 1}.freeze, 'str'.freeze].freeze, # nested frozen container S.new(1, 2).freeze, # frozen Struct S.new(1, 2, 3, 4).freeze, # frozen Struct + (1..2).freeze, # Range on Struct + (1..).freeze, # Range on Strcut + (..1).freeze, # Range on Strcut C, # class M, # module Ractor.current, # Ractor @@ -460,6 +463,7 @@ assert_equal "ok", %q{ https://github.com/ruby/ruby/blob/trunk/bootstraptest/test_ractor.rb#L463 S.new(1, 2), S.new(1, 2, 3, 4), S.new("a", 2).freeze, # frozen, but refers to an unshareable object + (1..2), (1..), (..1), ] results = [] -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/