From: eregontp@...
Date: 2014-02-08T10:29:21+00:00
Subject: [ruby-core:60575] [ruby-trunk - Feature #7068] [Rejected] ability to deactivate Hash#compare_by_identity()

Issue #7068 has been updated by Benoit Daloze.

Status changed from Feedback to Rejected

----------------------------------------
Feature #7068: ability to deactivate Hash#compare_by_identity()
https://bugs.ruby-lang.org/issues/7068#change-45023

* Author: Suraj Kurapati
* Status: Rejected
* Priority: Low
* Assignee: Yukihiro Matsumoto
* Category: 
* Target version: next minor
----------------------------------------
Hello,

I am using ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux].

There is no way to deactivate a Hash's compare by identity behavior:

  h = Hash.new
  h.compare_by_identity
  h.compare_by_identity? #=> true
  h.compare_by_identity
  h.compare_by_identity? #=> still true

I want the ability to deactivate that behavior afterwards, like this:

  h.compare_by_identity = false

Thanks for your consideration.



-- 
http://bugs.ruby-lang.org/