File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -121,10 +121,12 @@ with all sufficient information, see the ChangeLog file or Redmine
121
121
For example, 0 is an instance of Integer: 0.class returns Integer.
122
122
The constants Fixnum and Bignum is bound to Integer.
123
123
So obj.kind_of?(Fixnum) works as obj.kind_of?(Integer).
124
- At C-level, rb_cFixnum and rb_cBignum is same as rb_cInteger.
125
- So, class based dispatch, such as klass == rb_cFixnum and
126
- klass == rb_cBignum, should be changed to FIXNUM_P(obj) and
127
- RB_TYPE_P(obj, T_BIGNUM).
124
+ At C-level, Fixnum object and Bignum object should be distinguished by
125
+ FIXNUM_P(obj) and RB_TYPE_P(obj, T_BIGNUM).
126
+ ruby-2.4.0-preview1 (temporally) removes rb_cFixnum and rb_cBignum
127
+ to check the effect of incompatibility.
128
+ (rb_cFixnum and rb_cBignum may be defined as rb_cInteger later if
129
+ compilation failure of extension library is too big problem.)
128
130
129
131
* String/Symbol#upcase/downcase/swapcase/capitalize(!) now work for all of
130
132
Unicode, not only for ASCII. [Feature #10085]
You can’t perform that action at this time.
0 commit comments