summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-19 08:05:26 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-19 08:05:26 +0000
commit772fd010b6a76887d9be9389f60cc024bd34f83b (patch)
tree01b6fe7e8c6defa289079e6b6b4a287a1a5fad28 /numeric.c
parentabe087e50f28633684369acedd3edcb20a67b84f (diff)
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
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/numeric.c b/numeric.c
index ffa576149e..5ef02336db 100644
--- a/numeric.c
+++ b/numeric.c
@@ -5182,6 +5182,7 @@ Init_Numeric(void)
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);