Project

General

Profile

Actions

Feature #12005

closed

Unify Fixnum and Bignum into Integer

Added by naruse (Yui NARUSE) about 8 years ago. Updated almost 8 years ago.

Status:
Closed
Target version:
-
[ruby-core:72918]

Description

CRuby has two Integer classes, Fixnum and Bignum.
But it is implementation detail.
They should be seen as a single class Integer like Flonum.

Compatibility note

  • Q: How do I check whether Fixnum and Bignum are unified or not?
  • A: check RUBY_INTEGER_UNIFICATION macro

Files

unify-fixnum-and-bignum.patch (30.5 KB) unify-fixnum-and-bignum.patch akr (Akira Tanaka), 05/03/2016 10:18 AM

Related issues 2 (0 open2 closed)

Related to Ruby master - Bug #12427: Defining methods with the same name to both Fixnum and Bignum classes could cause SEGV in C extensions since Feature #12005ClosedActions
Related to Ruby master - Feature #12739: deprecate_constant :Fixnum, :BignumClosedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0