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

ruby-changes:7999

From: nobu <ko1@a...>
Date: Wed, 24 Sep 2008 17:45:01 +0900 (JST)
Subject: [ruby-changes:7999] Ruby:r19523 (trunk): * complex.c (Init_Complex), rational.c (Init_Rational): undefines

nobu	2008-09-24 17:44:47 +0900 (Wed, 24 Sep 2008)

  New Revision: 19523

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

  Log:
    * complex.c (Init_Complex), rational.c (Init_Rational): undefines
      default #allocate methods which call the allocater.

  Modified files:
    trunk/ChangeLog
    trunk/complex.c
    trunk/rational.c

Index: complex.c
===================================================================
--- complex.c	(revision 19522)
+++ complex.c	(revision 19523)
@@ -1371,6 +1371,7 @@
     rb_cComplex = rb_define_class(COMPLEX_NAME, rb_cNumeric);
 
     rb_define_alloc_func(rb_cComplex, nucomp_s_alloc);
+    rb_undef_method(CLASS_OF(rb_cComplex), "allocate");
 
 #if 0
     rb_define_private_method(CLASS_OF(rb_cComplex), "new!", nucomp_s_new_bang, -1);
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 19522)
+++ ChangeLog	(revision 19523)
@@ -1,3 +1,8 @@
+Wed Sep 24 17:44:44 2008  Nobuyoshi Nakada  <nobu@r...>
+
+	* complex.c (Init_Complex), rational.c (Init_Rational): undefines
+	  default #allocate methods which call the allocater.
+
 Wed Sep 24 17:02:14 2008  Nobuyoshi Nakada  <nobu@r...>
 
 	* complex.c (Init_Complex), rational.c (Init_Rational): ID_ALLOCATOR
Index: rational.c
===================================================================
--- rational.c	(revision 19522)
+++ rational.c	(revision 19523)
@@ -1488,6 +1488,7 @@
     rb_cRational = rb_define_class(RATIONAL_NAME, rb_cNumeric);
 
     rb_define_alloc_func(rb_cRational, nurat_s_alloc);
+    rb_undef_method(CLASS_OF(rb_cRational), "allocate");
 
 #if 0
     rb_define_private_method(CLASS_OF(rb_cRational), "new!", nurat_s_new_bang, -1);

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

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