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

ruby-changes:32469

From: marcandre <ko1@a...>
Date: Fri, 10 Jan 2014 02:49:43 +0900 (JST)
Subject: [ruby-changes:32469] marcandRe: r44548 (trunk): * gc.c: Oups, symbols are immediates too

marcandre	2014-01-10 02:49:31 +0900 (Fri, 10 Jan 2014)

  New Revision: 44548

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

  Log:
    * gc.c: Oups, symbols are immediates too

  Modified files:
    trunk/gc.c
Index: gc.c
===================================================================
--- gc.c	(revision 44547)
+++ gc.c	(revision 44548)
@@ -2343,7 +2343,7 @@ id2ref(VALUE obj, VALUE objid) https://github.com/ruby/ruby/blob/trunk/gc.c#L2343
  *  Note that some objects of builtin classes are reused for optimization.
  *  This is the case for immediate values and frozen string litterals.
  *  Immediate values are not passed by reference by are passed by value:
- *  +nil+, +true+, +false+, Fixnums. Some Floats may be immediates too.
+ *  +nil+, +true+, +false+, Fixnums, Symbols. Some Floats may be immediates too.
  *
  *      Object.new.object_id  == Object.new.object_id  # => false
  *      (21 * 2).object_id    == (21 * 2).object_id    # => true

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

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