Skip to content

Commit 772fd01

Browse files
committed
deprecate Fixnum and Bignum
* numeric.c (Init_Numeric), bignum.c (Init_Bignum): deprecate Fixnum and Bignum. this may be reverted after previews. [Feature ruby#12739] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent abe087e commit 772fd01

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
Mon Sep 19 17:05:22 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
2+
3+
* numeric.c (Init_Numeric), bignum.c (Init_Bignum): deprecate
4+
Fixnum and Bignum. this may be reverted after previews.
5+
[Feature #12739]
6+
17
Mon Sep 19 10:36:53 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
28

39
* enumerator.c (lazy_init_yielder): directly call stored functions.

bignum.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6781,6 +6781,7 @@ Init_Bignum(void)
67816781
rb_cBignum = rb_cInteger;
67826782
#endif
67836783
rb_define_const(rb_cObject, "Bignum", rb_cInteger);
6784+
rb_deprecate_constant(rb_cObject, "Bignum");
67846785

67856786
rb_define_method(rb_cInteger, "coerce", rb_int_coerce, 1);
67866787

numeric.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5182,6 +5182,7 @@ Init_Numeric(void)
51825182
rb_cFixnum = rb_cInteger;
51835183
#endif
51845184
rb_define_const(rb_cObject, "Fixnum", rb_cInteger);
5185+
rb_deprecate_constant(rb_cObject, "Fixnum");
51855186

51865187
rb_cFloat = rb_define_class("Float", rb_cNumeric);
51875188

0 commit comments

Comments
 (0)