[前][次][番号順一覧][スレッド一覧]

ruby-changes:43391

From: akr <ko1@a...>
Date: Mon, 20 Jun 2016 16:35:08 +0900 (JST)
Subject: [ruby-changes:43391] akr:r55465 (trunk): update description about rb_cFixnum and rb_cBignum.

akr	2016-06-20 16:35:05 +0900 (Mon, 20 Jun 2016)

  New Revision: 55465

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55465

  Log:
    update description about rb_cFixnum and rb_cBignum.

  Modified files:
    trunk/NEWS
Index: NEWS
===================================================================
--- NEWS	(revision 55464)
+++ NEWS	(revision 55465)
@@ -121,10 +121,12 @@ with all sufficient information, see the https://github.com/ruby/ruby/blob/trunk/NEWS#L121
   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]

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]