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

ruby-changes:27089

From: zzak <ko1@a...>
Date: Fri, 8 Feb 2013 08:02:05 +0900 (JST)
Subject: [ruby-changes:27089] zzak:r39140 (trunk): * compar.c (cmp_equal): Document ignored exception and return false

zzak	2013-02-08 07:33:32 +0900 (Fri, 08 Feb 2013)

  New Revision: 39140

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

  Log:
    * compar.c (cmp_equal): Document ignored exception and return false
      By Makoto Kishimoto [Bug #7790] [ruby-dev:46925] [ruby-dev:46910]

  Modified files:
    trunk/ChangeLog
    trunk/compar.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 39139)
+++ ChangeLog	(revision 39140)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Feb  8 07:33:00 2013  Zachary Scott  <zachary@z...>
+
+	* compar.c (cmp_equal): Document ignored exception and return false
+	  By Makoto Kishimoto [Bug #7790] [ruby-dev:46925] [ruby-dev:46910]
+
 Fri Feb  8 07:17:00 2013  Eric Hodel  <drbrain@s...>
 
 	* lib/rubygems/dependency_installer.rb:  Only install local gems if
Index: compar.c
===================================================================
--- compar.c	(revision 39139)
+++ compar.c	(revision 39140)
@@ -54,6 +54,9 @@ cmp_failed(void) https://github.com/ruby/ruby/blob/trunk/compar.c#L54
  *  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 ignoread and returns false.
  */
 
 static VALUE

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

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