[ruby-cvs:73089] mame:r65989 (trunk): object.c: Deprecate Object#=~ and add NilClass#=~`

mame at ruby-lang.org mame at ruby-lang.org
Mon Nov 26 16:55:07 JST 2018


mame	2018-11-26 16:55:07 +0900 (Mon, 26 Nov 2018)

  New Revision: 65989

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

  Log:
    object.c: Deprecate Object#=~ and add NilClass#=~`
    
    Object#=~ always returns nil.  This behavior is not only unuseful but
    also troublesome because it may hide a type error.
    
    This change deprecates Object#=~.  For compatibility, NilClass#=~ is
    newly introduced.  [Feature #15231]

  Modified files:
    trunk/NEWS
    trunk/object.c
    trunk/test/minitest/test_minitest_unit.rb


More information about the ruby-cvs mailing list