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

ruby-changes:45921

From: normal <ko1@a...>
Date: Fri, 17 Mar 2017 08:17:21 +0900 (JST)
Subject: [ruby-changes:45921] normal:r57994 (trunk): NEWS: document shorter opt_str_freeze usage

normal	2017-03-17 08:17:14 +0900 (Fri, 17 Mar 2017)

  New Revision: 57994

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57994

  Log:
    NEWS: document shorter opt_str_freeze usage
    
    Users do not read commit messages, but maybe they read NEWS.
    
    r57828 ("compile.c: apply opt_str_freeze to String#-@ (uminus)")

  Modified files:
    trunk/NEWS
Index: NEWS
===================================================================
--- NEWS	(revision 57993)
+++ NEWS	(revision 57994)
@@ -36,6 +36,8 @@ with all sufficient information, see the https://github.com/ruby/ruby/blob/trunk/NEWS#L36
 
   * String#-@ deduplicates unfrozen strings.  Already-frozen
     strings remain unchanged for compatibility.  [Feature #13077]
+  * -"literal" (String#-@) optimized to return the same object
+    (same as "literal".freeze in Ruby 2.1+)
 
 === Stdlib updates (outstanding ones only)
 

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

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