[#70843] Re: [ruby-cvs:58952] hsbt:r51801 (trunk): * lib/rubygems: Update to RubyGems HEAD(fe61e4c112). — Eric Wong <normalperson@...>
hsbt@ruby-lang.org wrote:
3 messages
2015/09/17
[ruby-core:70891] [Ruby trunk - Feature #11473] Immutable String literal in Ruby 3
From:
rr.rosas@...
Date:
2015-09-23 17:01:31 UTC
List:
ruby-core #70891
Issue #11473 has been updated by Rodrigo Rosenfeld Rosas.
I never suggested to dup it, but to actually "unfreeze" it:
~~~
a = b = 'asdf'.freeze
a.unfreeze # this is currently not possible, but thould be performed automatically
# internally by my proposal without changing the object_id
a.object_id == b.object_id # this should be true for what I proposed.
~~~
----------------------------------------
Feature #11473: Immutable String literal in Ruby 3
https://bugs.ruby-lang.org/issues/11473#change-54263
* Author: Koichi Sasada
* Status: Open
* Priority: Normal
* Assignee: Yukihiro Matsumoto
----------------------------------------
Matz said "All String literals are immutable (frozen) on Ruby 3".
This ticket is place holder to discuss about that.
--
https://bugs.ruby-lang.org/