[ruby-core:75325] [Ruby trunk Feature#12005] Unify Fixnum and Bignum into Integer

From: akr@...
Date: 2016-05-03 10:18:27 UTC
List: ruby-core #75325
Issue #12005 has been updated by Akira Tanaka.

File unify-fixnum-and-bignum.patch added

I made a patch to unify Fixnum and Bignum:
unify-fixnum-and-bignum.patch

For rough compatibility, I defined Fixnum and Bignum as Integer.
So, foo.kind_of?(Fixnum) works as foo.kind_of?(Integer).
This works mostly because most application doesn't have interest
on the boundary between Fixnum and Bignum which vary on platforms.


----------------------------------------
Feature #12005: Unify Fixnum and Bignum into Integer
https://bugs.ruby-lang.org/issues/12005#change-58455

* Author: Yui NARUSE
* Status: Assigned
* Priority: Normal
* Assignee: Kenta Murata
----------------------------------------
CRuby has two `Integer` classes, `Fixnum` and `Bignum`.
But it is implementation detail.
They should be seen as a single class `Integer` like `Flonum`.

---Files--------------------------------
unify-fixnum-and-bignum.patch (30.5 KB)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next