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

ruby-changes:44119

From: akr <ko1@a...>
Date: Tue, 20 Sep 2016 20:12:49 +0900 (JST)
Subject: [ruby-changes:44119] akr:r56192 (trunk): describe "0.class == Integer" to detect the feature.

akr	2016-09-20 20:12:38 +0900 (Tue, 20 Sep 2016)

  New Revision: 56192

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

  Log:
    describe "0.class == Integer" to detect the feature.

  Modified files:
    trunk/NEWS
Index: NEWS
===================================================================
--- NEWS	(revision 56191)
+++ NEWS	(revision 56192)
@@ -158,7 +158,8 @@ with all sufficient information, see the https://github.com/ruby/ruby/blob/trunk/NEWS#L158
   So obj.kind_of?(Fixnum) works as obj.kind_of?(Integer).
   At C-level, Fixnum object and Bignum object should be distinguished by
   FIXNUM_P(obj) and RB_TYPE_P(obj, T_BIGNUM).
-  RUBY_INTEGER_UNIFICATION can be used to detect this feature.
+  RUBY_INTEGER_UNIFICATION can be used to detect this feature at C-level.
+  0.class == Integer can be used to detect this feature at Ruby-level.
   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

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

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