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

ruby-changes:54199

From: kazu <ko1@a...>
Date: Sun, 16 Dec 2018 23:54:11 +0900 (JST)
Subject: [ruby-changes:54199] kazu:r66420 (trunk): [DOC] Update Object#=~ [ci skip]

kazu	2018-12-16 23:54:05 +0900 (Sun, 16 Dec 2018)

  New Revision: 66420

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

  Log:
    [DOC] Update Object#=~ [ci skip]
    
    see r65989

  Modified files:
    trunk/object.c
Index: object.c
===================================================================
--- object.c	(revision 66419)
+++ object.c	(revision 66420)
@@ -1678,9 +1678,10 @@ rb_false(VALUE obj) https://github.com/ruby/ruby/blob/trunk/object.c#L1678
  *  call-seq:
  *     obj =~ other  -> nil
  *
- *  Pattern Match---Overridden by descendants (notably
- *  <code>Regexp</code> and <code>String</code>) to provide meaningful
- *  pattern-match semantics.
+ * This method is deprecated.
+ *
+ * This is not only unuseful but also troublesome because it
+ * may hide a type error.
  */
 
 static VALUE

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

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