summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-20 11:12:38 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-20 11:12:38 +0000
commit45d62ec988a3d3937c7a18c5dfc7fc5449347438 (patch)
tree24c16a87eea744005e73d78f8b009e177f1a387b
parent495879221c233d54f359f1f8f8832ce5b68d1d25 (diff)
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
-rw-r--r--NEWS3
1 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index c83691c7e2..dd97df3b20 100644
--- a/NEWS
+++ b/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