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

ruby-changes:7413

From: matz <ko1@a...>
Date: Sat, 30 Aug 2008 02:49:34 +0900 (JST)
Subject: [ruby-changes:7413] Ruby:r18932 (trunk): * object.c (rb_obj_freeze): update rdoc to mention RuntimeError

matz	2008-08-30 02:49:18 +0900 (Sat, 30 Aug 2008)

  New Revision: 18932

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

  Log:
    * object.c (rb_obj_freeze): update rdoc to mention RuntimeError
      (not TypeError any longer) would be raised.  [ruby-dev:35982]

  Modified files:
    trunk/ChangeLog
    trunk/object.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 18931)
+++ ChangeLog	(revision 18932)
@@ -1,3 +1,8 @@
+Sat Aug 30 02:48:11 2008  Yukihiro Matsumoto  <matz@r...>
+
+	* object.c (rb_obj_freeze): update rdoc to mention RuntimeError
+	  (not TypeError any longer) would be raised.  [ruby-dev:35982]
+
 Sat Aug 30 01:55:30 2008  Yukihiro Matsumoto  <matz@r...>
 
 	* bignum.c (bigdivmod): remove redundant code.  a patch from
Index: object.c
===================================================================
--- object.c	(revision 18931)
+++ object.c	(revision 18932)
@@ -761,7 +761,7 @@
  *     obj.freeze    => obj
  *  
  *  Prevents further modifications to <i>obj</i>. A
- *  <code>TypeError</code> will be raised if modification is attempted.
+ *  <code>RuntimeError</code> will be raised if modification is attempted.
  *  There is no way to unfreeze a frozen object. See also
  *  <code>Object#frozen?</code>.
  *     
@@ -771,7 +771,7 @@
  *     
  *  <em>produces:</em>
  *     
- *     prog.rb:3:in `<<': can't modify frozen array (TypeError)
+ *     prog.rb:3:in `<<': can't modify frozen array (RuntimeError)
  *     	from prog.rb:3
  */
 

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

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