diff options
author | Jean Boussier <jean.boussier@gmail.com> | 2019-09-26 10:41:43 +0200 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2019-09-26 13:25:23 +0200 |
commit | 9d0866c7d7b9cbe36a851744a37806e747e0e7a8 (patch) | |
tree | 0a5feb4dc71cf8fd4604c4e524a7ee2c360b3138 /NEWS | |
parent | c8f71686533cf068ad2f7a2e9fbb95a5c9f44642 (diff) | |
download | ruby-9d0866c7d7b9cbe36a851744a37806e747e0e7a8.tar.gz |
[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]
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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:: |