From c4b74dbbdbaebcc8f0ecde531d9a3b15561d28ef Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 19 Sep 2016 08:05:26 +0000 Subject: deprecate Fixnum and Bignum * numeric.c (Init_Numeric), bignum.c (Init_Bignum): deprecate Fixnum and Bignum. this may be reverted after previews. [Feature #12739] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bignum.c | 1 + 1 file changed, 1 insertion(+) (limited to 'bignum.c') diff --git a/bignum.c b/bignum.c index 741fa2d21e..ca06c54b3e 100644 --- a/bignum.c +++ b/bignum.c @@ -6781,6 +6781,7 @@ Init_Bignum(void) 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); -- cgit v1.2.3