in reply to reference as key to hash

why would you use a reference as a key to a hash ? references are ephemeral in many ways , what if you want to itertate over them later, when other items have taken the references that the old ones had when you made the hash ? I think this is not a very good idea.

Replies are listed 'Best First'.
Re^2: reference as key to hash
by ikegami (Patriarch) on Apr 26, 2009 at 03:07 UTC

    why would you use a reference as a key to a hash ?

    You may have noticed the reference wasn't used as the key, just as a means of passing a more complex key.

Re^2: reference as key to hash
by shmem (Chancellor) on Apr 24, 2009 at 23:13 UTC
    references are ephemeral in many ways

    So is anything you program or do. But while in scope you are present.