mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
describe "0.class == Integer" to detect the feature.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
495879221c
commit
45d62ec988
1 changed files with 2 additions and 1 deletions
3
NEWS
3
NEWS
|
@ -158,7 +158,8 @@ with all sufficient information, see the ChangeLog file or Redmine
|
|||
So obj.kind_of?(Fixnum) works as obj.kind_of?(Integer).
|
||||
At C-level, Fixnum object and Bignum object should be distinguished by
|
||||
FIXNUM_P(obj) and RB_TYPE_P(obj, T_BIGNUM).
|
||||
RUBY_INTEGER_UNIFICATION can be used to detect this feature.
|
||||
RUBY_INTEGER_UNIFICATION can be used to detect this feature at C-level.
|
||||
0.class == Integer can be used to detect this feature at Ruby-level.
|
||||
ruby-2.4.0-preview1 (temporally) removes rb_cFixnum and rb_cBignum
|
||||
to check the effect of incompatibility.
|
||||
(rb_cFixnum and rb_cBignum may be defined as rb_cInteger later if
|
||||
|
|
Loading…
Reference in a new issue