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

ruby-changes:41061

From: marcandre <ko1@a...>
Date: Wed, 16 Dec 2015 05:20:03 +0900 (JST)
Subject: [ruby-changes:41061] marcandRe: r53136 (trunk): * compar.c: Update doc for == [#7688] [ci-skip]

marcandre	2015-12-16 05:19:35 +0900 (Wed, 16 Dec 2015)

  New Revision: 53136

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

  Log:
    * compar.c: Update doc for == [#7688] [ci-skip]

  Modified files:
    trunk/NEWS
    trunk/compar.c
Index: NEWS
===================================================================
--- NEWS	(revision 53135)
+++ NEWS	(revision 53136)
@@ -57,6 +57,10 @@ with all sufficient information, see the https://github.com/ruby/ruby/blob/trunk/NEWS#L57
   * Array#bsearch_index [Feature #10730]
   * Array#dig [Feature #11643]
 
+* Comparable
+
+  * Comparable#== no longer rescues exceptions [Feature #7688]
+
 * Enumerable
 
   * Enumerable#grep_v is added as inverse version of Enumerable#grep.
Index: compar.c
===================================================================
--- compar.c	(revision 53135)
+++ compar.c	(revision 53136)
@@ -64,9 +64,6 @@ cmp_eq_recursive(VALUE arg1, VALUE arg2, https://github.com/ruby/ruby/blob/trunk/compar.c#L64
  *  Compares two objects based on the receiver's <code><=></code>
  *  method, returning true if it returns 0. Also returns true if
  *  _obj_ and _other_ are the same object.
- *
- *  Even if _obj_ <=> _other_ raised an exception, the exception
- *  is ignored and returns false.
  */
 
 static VALUE

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

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