I noticed that echo $object statements in PHP 5 display object ids that are kept by the engine, so this data is already in the string form and it is data that exists. As for as a use for this feature, one can't easily say there is not a use; there have been times when I wished to have this feature --though I usually found some other way to do it, but this idea is intuitive.

Andi Gutmans <[EMAIL PROTECTED]>
I don't think it's a good idea because it would break lots of other things such as foreach(). keys have to be integers or strings.

On 5 Nov 2003, at 2:08 AM, netcat wrote:


Yes, nice and generally it's nice to have a language that it's possible to use
anything as index but what use do you see for it ?
Hash with objects as indexes ..... will hold additional data for objects?
So why not store the data inside the object itself ?

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



Reply via email to