Re: [RFC][VOTE] Objects as Keys

From: Date: Wed, 17 Dec 2014 12:43:04 +0000
Subject: Re: [RFC][VOTE] Objects as Keys
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-79775@lists.php.net to get a copy of this message
Hi, Answering the question of Christopher Becker. It is not possible to traverse and get your desired elements. How would you achieve a foreach by key (returning object) without having to store a separate list and track by hash or through an interface? Cheers, On Wed, Dec 17, 2014 at 10:04 AM, Derick Rethans <derick@php.net> wrote: > > On Tue, 16 Dec 2014, Stanislav Malyshev wrote: > > > I'd like to initiate a vote on "objects as keys" RFC: > > https://wiki.php.net/rfc/objkey > > I wonder why you opened voting on this, before resolving the "Open > Issues": > > Open Issues > > Should SplFixedArray support object indexes? > Should SplObjectStorage support calling __hash for an object if it > exists? > > cheers, > Derick > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Guilherme Blanco MSN: guilhermeblanco@hotmail.com GTalk: guilhermeblanco Toronto - ON/Canada

« previous php.internals (#79775) next »