diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-06-20 07:35:05 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-06-20 07:35:05 +0000 |
commit | 76e8beb6e153b4da1e953d45d2767b1b4c08d478 (patch) | |
tree | 1b8708a8023aaa2b563739d4c45ac77c3730402a /NEWS | |
parent | 76941e5f54d1f74c56d9ada6e2f9cd13d5ee43b9 (diff) | |
download | ruby-76e8beb6e153b4da1e953d45d2767b1b4c08d478.tar.gz |
update description about rb_cFixnum and rb_cBignum.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -121,10 +121,12 @@ with all sufficient information, see the ChangeLog file or Redmine For example, 0 is an instance of Integer: 0.class returns Integer. The constants Fixnum and Bignum is bound to Integer. So obj.kind_of?(Fixnum) works as obj.kind_of?(Integer). - At C-level, rb_cFixnum and rb_cBignum is same as rb_cInteger. - So, class based dispatch, such as klass == rb_cFixnum and - klass == rb_cBignum, should be changed to FIXNUM_P(obj) and - RB_TYPE_P(obj, T_BIGNUM). + At C-level, Fixnum object and Bignum object should be distinguished by + FIXNUM_P(obj) and RB_TYPE_P(obj, T_BIGNUM). + 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 + compilation failure of extension library is too big problem.) * String/Symbol#upcase/downcase/swapcase/capitalize(!) now work for all of Unicode, not only for ASCII. [Feature #10085] |