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

ruby-changes:40464

From: akr <ko1@a...>
Date: Thu, 12 Nov 2015 12:51:05 +0900 (JST)
Subject: [ruby-changes:40464] akr:r52545 (trunk): Module#<=> is not suitable for Comparable.

akr	2015-11-12 12:50:58 +0900 (Thu, 12 Nov 2015)

  New Revision: 52545

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

  Log:
    Module#<=> is not suitable for Comparable.

  Modified files:
    trunk/object.c
Index: object.c
===================================================================
--- object.c	(revision 52544)
+++ object.c	(revision 52545)
@@ -1629,7 +1629,7 @@ rb_mod_gt(VALUE mod, VALUE arg) https://github.com/ruby/ruby/blob/trunk/object.c#L1629
  *
  *  Comparison---Returns -1, 0, +1 or nil depending on whether +module+
  *  includes +other_module+, they are the same, or if +module+ is included by
- *  +other_module+. This is the basis for the tests in Comparable.
+ *  +other_module+.
  *
  *  Returns +nil+ if +module+ has no relationship with +other_module+, if
  *  +other_module+ is not a module, or if the two values are incomparable.

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

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