Project

General

Profile

Actions

Bug #9855

closed

nested hash with clone method , it act as a reference but object id are different

Added by neerajdoharey (Neeraj Doharey) over 10 years ago. Updated over 10 years ago.

Status:
Rejected
Assignee:
-
Target version:
ruby -v:
2.1.0 , 1.9.3
[ruby-core:62681]

Description

there is a problem with nested hash ,
when i clone a nested hash it act as a reference an when i remove an element from the cloned newly created hash , the previous hash is same as newly create hash.
there object id are different
i am sending the screenshot of the problem that i face


Files

Screen Shot 2014-05-19 at 10.54.18 pm.png (431 KB) Screen Shot 2014-05-19 at 10.54.18 pm.png neerajdoharey (Neeraj Doharey), 05/19/2014 05:35 PM
Actions

Also available in: Atom PDF

Like0
Like0