diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-17 13:24:53 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-17 13:24:53 +0000 |
commit | d7b4ecfced3b9bfe3f2a94c30345586c5b2465bc (patch) | |
tree | a0b65c8e0581f8495a2484b9543d67694355f6eb /NEWS | |
parent | eafe3982896faa093156ba5b4b9cfee5de1584c9 (diff) | |
download | ruby-d7b4ecfced3b9bfe3f2a94c30345586c5b2465bc.tar.gz |
Describe Fixnum and Bignum integration in NEWS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -46,6 +46,8 @@ with all sufficient information, see the ChangeLog file or Redmine * Integer#ceil, Integer#floor, and Integer#truncate now take an optional digits, as well as Integer#round. [Feature #12245] + * Fixnum and Bignum are unified into Integer [Feature #12005] + * String * String.new(capacity: size) [Feature #12024] @@ -84,6 +86,17 @@ with all sufficient information, see the ChangeLog file or Redmine Ruby's sum method should be mostly compatible but it is impossible to be perfectly compatible with all of them. +* Fixnum and Bignum are unified into Integer [Feature #12005] + Fixnum class and Bignum class is removed. + Integer class is changed from abstract class to concrete class. + 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). + === Stdlib compatibility issues (excluding feature bug fixes) * Time |