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

ruby-changes:32466

From: marcandre <ko1@a...>
Date: Fri, 10 Jan 2014 02:34:18 +0900 (JST)
Subject: [ruby-changes:32466] marcandRe: r44545 (trunk): * object.c: Add rdoc for classes frozen by default

marcandre	2014-01-10 02:34:14 +0900 (Fri, 10 Jan 2014)

  New Revision: 44545

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

  Log:
    * object.c: Add rdoc for classes frozen by default

  Modified files:
    trunk/object.c
Index: object.c
===================================================================
--- object.c	(revision 44544)
+++ object.c	(revision 44545)
@@ -1048,6 +1048,9 @@ static st_table *immediate_frozen_tbl = https://github.com/ruby/ruby/blob/trunk/object.c#L1048
  *
  *     prog.rb:3:in `<<': can't modify frozen array (RuntimeError)
  *     	from prog.rb:3
+ *
+ *  Objects of the following classes are always frozen: Fixnum,
+ *  Bignum, Float, Symbol.
  */
 
 VALUE

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

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