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

ruby-changes:44114

From: nobu <ko1@a...>
Date: Mon, 19 Sep 2016 17:05:31 +0900 (JST)
Subject: [ruby-changes:44114] nobu:r56187 (trunk): deprecate Fixnum and Bignum

nobu	2016-09-19 17:05:26 +0900 (Mon, 19 Sep 2016)

  New Revision: 56187

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

  Log:
    deprecate Fixnum and Bignum
    
    * numeric.c (Init_Numeric), bignum.c (Init_Bignum): deprecate
      Fixnum and Bignum.  this may be reverted after previews.
      [Feature #12739]

  Modified files:
    trunk/ChangeLog
    trunk/bignum.c
    trunk/numeric.c
Index: numeric.c
===================================================================
--- numeric.c	(revision 56186)
+++ numeric.c	(revision 56187)
@@ -5182,6 +5182,7 @@ Init_Numeric(void) https://github.com/ruby/ruby/blob/trunk/numeric.c#L5182
     rb_cFixnum = rb_cInteger;
 #endif
     rb_define_const(rb_cObject, "Fixnum", rb_cInteger);
+    rb_deprecate_constant(rb_cObject, "Fixnum");
 
     rb_cFloat  = rb_define_class("Float", rb_cNumeric);
 
Index: bignum.c
===================================================================
--- bignum.c	(revision 56186)
+++ bignum.c	(revision 56187)
@@ -6781,6 +6781,7 @@ Init_Bignum(void) https://github.com/ruby/ruby/blob/trunk/bignum.c#L6781
     rb_cBignum = rb_cInteger;
 #endif
     rb_define_const(rb_cObject, "Bignum", rb_cInteger);
+    rb_deprecate_constant(rb_cObject, "Bignum");
 
     rb_define_method(rb_cInteger, "coerce", rb_int_coerce, 1);
 
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 56186)
+++ ChangeLog	(revision 56187)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Mon Sep 19 17:05:22 2016  Nobuyoshi Nakada  <nobu@r...>
+
+	* numeric.c (Init_Numeric), bignum.c (Init_Bignum): deprecate
+	  Fixnum and Bignum.  this may be reverted after previews.
+	  [Feature #12739]
+
 Mon Sep 19 10:36:53 2016  Nobuyoshi Nakada  <nobu@r...>
 
 	* enumerator.c (lazy_init_yielder): directly call stored functions.

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

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