Re: Missing __toString() part
| From: | Marcus Boerger | Date: | Sun, 04 Jun 2006 12:18:22 +0000 |
| Subject: | Re: Missing __toString() part | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-23923@lists.php.net to get a copy of this message | ||
Hello Pierre,
Sunday, June 4, 2006, 2:05:52 PM, you wrote:
> On 6/4/06, Marcus Boerger <helly@php.net> wrote:
>> Adding a function hash_from_object() or spl_hash_from object() to ease
>> > the generations of hashes is indeed a good idea. There is no impact in
>> > the objects managements and people are free to use it or not (no magic
>> > default behaviors).
>>
>> Hence i wrote "For PHP 5.2 we **could** think"...
> Yes, and what's the point of this answer?
You reply didn't sound like you understood what i wrote. Having a vote from
you makes your thoughts clear also i got it like that already.
And just in case anybody is interested in my voting:
~0 for any magic changes
~0 for __toHash/whatever will be the name of this method
+1 to keep $a[(string)$o]
+1 for an extra (and extern) function to get an unique hash of an object