#46 open
Richard Wiseman

Hash/$H documentation contradiction

Reported by Richard Wiseman | March 13th, 2009 @ 12:21 PM

Hopefully it's OK to submit documentation enhancements here - apologies if it's not!

On the $H page it says: "A convenience wrapper around the Hash constructor, with a safeguard that lets you pass an existing Hash object and get it back untouched (instead of uselessly cloning it)."

On the Hash page it says: "The $H(object) shortcut is now completely equivalent to new Hash(object). Both always return a new object, regardless of whether the argument was an Object or another Hash."

Unless I'm interpreting these wrongly, they mean the opposite to each other: where hash is an instance of Hash, the first says $H(hash)==hash; the second says $H(hash)!=hash.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket

Referenced by

Pages