ruby-changes:54042
From: nobu <ko1@a...>
Date: Fri, 7 Dec 2018 08:04:00 +0900 (JST)
Subject: [ruby-changes:54042] nobu:r66261 (trunk): Show the class of the receiver [Feature #15231]
nobu 2018-12-07 08:03:54 +0900 (Fri, 07 Dec 2018) New Revision: 66261 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66261 Log: Show the class of the receiver [Feature #15231] Modified files: trunk/object.c Index: object.c =================================================================== --- object.c (revision 66260) +++ object.c (revision 66261) @@ -1686,7 +1686,8 @@ rb_false(VALUE obj) https://github.com/ruby/ruby/blob/trunk/object.c#L1686 static VALUE rb_obj_match(VALUE obj1, VALUE obj2) { - rb_warning("Object#=~ is deprecated; it always returns nil"); + rb_warning("deprecated Object#=~ is called on %"PRIsVALUE + "; it always returns nil", rb_obj_class(obj1)); return Qnil; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/