[前][次][番号順一覧][スレッド一覧]

ruby-changes:64401

From: Kazuhiro <ko1@a...>
Date: Mon, 21 Dec 2020 13:27:07 +0900 (JST)
Subject: [ruby-changes:64401] 74a7877836 (master): [DOC] Remove about FrozenError from Ractor::MovedObject [ci skip]

https://git.ruby-lang.org/ruby.git/commit/?id=74a7877836

From 74a78778362a7ad9aa246f2cb1a30174a6007365 Mon Sep 17 00:00:00 2001
From: Kazuhiro NISHIYAMA <zn@m...>
Date: Mon, 21 Dec 2020 13:25:03 +0900
Subject: [DOC] Remove about FrozenError from Ractor::MovedObject [ci skip]

Because unfreeze Ractor::MovedObject at
https://github.com/ruby/ruby/commit/76e88480371469400346fca609efe67096813915

diff --git a/ractor.c b/ractor.c
index 7c5c864..8c4f06a 100644
--- a/ractor.c
+++ b/ractor.c
@@ -2009,15 +2009,6 @@ ractor_moved_missing(int argc, VALUE *argv, VALUE self) https://github.com/ruby/ruby/blob/trunk/ractor.c#L2009
  *     # => true
  *     ary.inspect
  *     # Ractor::MovedError (can not send any methods to a moved object)
- *
- *  The class MovedObject is frozen to avoid tampering with it:
- *
- *     class Ractor::MovedObject
- *       def inspect
- *         "<MyMovedObject>"
- *       end
- *     end
- *     # FrozenError (can't modify frozen class: Ractor::MovedObject)
  */
 
 // Main docs are in ractor.rb, but without this clause there are weird artifacts
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]