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

ruby-changes:36975

From: nobu <ko1@a...>
Date: Mon, 29 Dec 2014 14:27:54 +0900 (JST)
Subject: [ruby-changes:36975] nobu:r49056 (trunk): literals.rdoc: Update for symbol literals

nobu	2014-12-29 14:27:36 +0900 (Mon, 29 Dec 2014)

  New Revision: 49056

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

  Log:
    literals.rdoc: Update for symbol literals
    
    * doc/syntax/literals.rdoc (Symbols): now Symbols created by
      interpolation can be garbage collected.  patch by Yihang Ho in
      [ruby-core:67194].  [Bug #10671]
    [ci skip]

  Modified files:
    trunk/ChangeLog
    trunk/doc/syntax/literals.rdoc
Index: doc/syntax/literals.rdoc
===================================================================
--- doc/syntax/literals.rdoc	(revision 49055)
+++ doc/syntax/literals.rdoc	(revision 49056)
@@ -199,9 +199,6 @@ You may also create symbols by interpola https://github.com/ruby/ruby/blob/trunk/doc/syntax/literals.rdoc#L199
   :"my_symbol1"
   :"my_symbol#{1 + 1}"
 
-Note that symbols are never garbage collected so be careful when referencing
-symbols using interpolation.
-
 Like strings, a single-quote may be used to disable interpolation:
 
   :'my_symbol#{1 + 1}' #=> :"my_symbol\#{1 + 1}"
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 49055)
+++ ChangeLog	(revision 49056)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Mon Dec 29 14:27:33 2014  Nobuyoshi Nakada  <nobu@r...>
+
+	* doc/syntax/literals.rdoc (Symbols): now Symbols created by
+	  interpolation can be garbage collected.  patch by Yihang Ho in
+	  [ruby-core:67194].  [Bug #10671]
+
 Mon Dec 29 11:18:17 2014  Nobuyoshi Nakada  <nobu@r...>
 
 	* thread.c (rb_thread_variable_get): fix dynamic symbol keys.

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

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