From: matz@... (Yukihiro Matsumoto) Date: 2003-05-15T12:32:07+09:00 Subject: Re: obj.hash now == obj.hash after? Hi, In message "obj.hash now == obj.hash after?" on 03/05/15, gabriele renzi writes: |I know that id (soon to be deprecated, I know ;) guarantees that two |active objects wont get the same id in the same time, but I supposed |that hash would give a unique value for any object in any time. No, hash values are used for hashing values by Hash. It does not need full uniqueness. Conflicts just slows down a Hash. |If I marshal an object, restart ruby and reload it, will I get the |same hash? what about the id ? why they look the same thing ? No. Marshal makes copies. Hash values may not be same for copied objects, even for cloned objects. matz.