Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79775 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86844 invoked from network); 17 Dec 2014 12:43:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Dec 2014 12:43:30 -0000 Authentication-Results: pb1.pair.com header.from=guilhermeblanco@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=guilhermeblanco@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.179 as permitted sender) X-PHP-List-Original-Sender: guilhermeblanco@gmail.com X-Host-Fingerprint: 209.85.213.179 mail-ig0-f179.google.com Received: from [209.85.213.179] ([209.85.213.179:33655] helo=mail-ig0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5F/91-10120-07A71945 for ; Wed, 17 Dec 2014 07:43:28 -0500 Received: by mail-ig0-f179.google.com with SMTP id r2so8829537igi.12 for ; Wed, 17 Dec 2014 04:43:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=41/SALMWBmc20y9/kJw9JRBsRy5KoscoiuOj5oXf8ow=; b=MIMhM/0SQwEdfZgOJkYpmQtyl85Ot/NNySul3noy+NdSZg3+yhtTE7U3r2mi9YKvY0 fQQdDlZUsT4w+ODvHo5fuQyPJtHdVLRlF0rGrJ7VmjoyHsNdbWa/0u9qr1J02nxet9Kb imt/Lb7p0N53cPXRLAw82Bk+yujWUKE/b4zVHDWKa47jV/3iythRWUrxF/F+NsZI3u6b xaL7a7rI1gwZGSmPnK8jwBL7AMju9lutQOWv7IG+NkO/T2fPF6mS1MsSbm2I4dCg4V4/ U+zR9voaGIAAYz6kSvDCsgyNgx5rWWGg0mJUvGbcum+C0CPVlUfDnuA5JXlV29xpkhU1 hkyw== X-Received: by 10.42.230.74 with SMTP id jl10mr37007824icb.77.1418820205031; Wed, 17 Dec 2014 04:43:25 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.238.75 with HTTP; Wed, 17 Dec 2014 04:43:04 -0800 (PST) In-Reply-To: References: <548FEE87.7020602@gmail.com> Date: Wed, 17 Dec 2014 10:43:04 -0200 Message-ID: To: Derick Rethans Cc: Stanislav Malyshev , PHP Internals Content-Type: multipart/alternative; boundary=001a11c3c14a5237a0050a68d20c Subject: Re: [PHP-DEV] [RFC][VOTE] Objects as Keys From: guilhermeblanco@gmail.com ("guilhermeblanco@gmail.com") --001a11c3c14a5237a0050a68d20c Content-Type: text/plain; charset=UTF-8 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 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 --001a11c3c14a5237a0050a68d20c--