summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorJean Boussier <jean.boussier@gmail.com>2019-09-26 10:41:43 +0200
committerBenoit Daloze <eregontp@gmail.com>2019-09-26 13:25:23 +0200
commit9d0866c7d7b9cbe36a851744a37806e747e0e7a8 (patch)
tree0a5feb4dc71cf8fd4604c4e524a7ee2c360b3138 /NEWS
parentc8f71686533cf068ad2f7a2e9fbb95a5c9f44642 (diff)
[EXPERIMENTAL] Make Module#name return a frozen String
* Always the same frozen String for a given Module or Class. * Avoids extra allocations whenever calling Module#name. * See [Feature #16150]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2487
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 4e168518ca..d23cadde3e 100644
--- a/NEWS
+++ b/NEWS
@@ -174,6 +174,10 @@ Module::
* Module#autoload? now takes an +inherit+ optional argument, like as
Module#const_defined?. [Feature #15777]
+
+ * Module#name now always return a frozen String. The returned String is
+ always the same for a given Module. This change is experimental
+ [Feature #16150]
ObjectSpace::WeakMap::