Marcus Boerger wrote:
Hello guys,

  the attached patch closes one more __toString() part. It allows
to use objects that define __toString as indexes to arrays. What do
you guys think about this, should we add it or stay with the old
behavior that didn't allow objects as indexes at all.

-1 on automatic __toString()
+1 on explicit (string) cast (as it is now)
+0 on __toHash()/__toKey() (which must be implemented explicitly)

Rasmus' idea of changing the HashKey is... duh... at least something
to think some more time about.

Regards,
--
Michael

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to