Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97689 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94379 invoked from network); 11 Jan 2017 15:43:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jan 2017 15:43:39 -0000 Authentication-Results: pb1.pair.com smtp.mail=dave@mudsite.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dave@mudsite.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain mudsite.com designates 209.85.213.51 as permitted sender) X-PHP-List-Original-Sender: dave@mudsite.com X-Host-Fingerprint: 209.85.213.51 mail-vk0-f51.google.com Received: from [209.85.213.51] ([209.85.213.51:35103] helo=mail-vk0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BF/51-55699-AA256785 for ; Wed, 11 Jan 2017 10:43:38 -0500 Received: by mail-vk0-f51.google.com with SMTP id x75so58052765vke.2 for ; Wed, 11 Jan 2017 07:43:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mudsite-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=ZYhUHtSl3oDWmner6G4/dAmX8o94cVTMupThg9cmB1M=; b=ZDt0m6RLc/Ns4U5XqU89qYr+oYuFPXeghiJZeLre3+BHd3AT3cyAad3WB6MD/YdeE5 TNmB9CU5KiPw9l1B7kr08ytMCeJNS1SwRNETITsMHGMlgbp7Y09Ur1LpUi9zM7x1/7d2 gNyeG+tNB5tDPpp3ZC0h9XVurYRUE6v64tSXmmGGntza31qJ0NYKJZvzzW2uiiJ8f6oP uojimGrf3gcqXPDGHhcSqR5sHatr9k/IzdUDF0X9RHxD16SMcTHrZ/AaJSYXleuuOrBw X2G9rzzCIDQHEPqb2VdXwk58B0tHmNo4bibD/Qknfls9Tc4U+3SuncNUZCnYV+xxsjNn k/eQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=ZYhUHtSl3oDWmner6G4/dAmX8o94cVTMupThg9cmB1M=; b=JBKeLB7LMj9iLlgVY4dmFUAIH7obZgl4pqzvqAEv3ttJkcMTHKYesXCfI/zyayuCVq 3WoORGNFjOSpwAAVky0O92VpojfTsmf2sZIF7oXRSGQC34kRJgGxVvU+xMirK+RzwQTj OvxReA0MKLvpyJFv+4PWJ367aBmmBpuYbXkPOe7IO1elpZCbEUsWj+5mXsiNVfdcVyIi CIaIYxCg7ANRGciXgITS2wjMg4iUVjLcrT8tTfzzM3FgvH/WsEqZ3qlrsq8gL62iB3RQ /v/MCnx1wTWwDjQDfAL56PXSg2FP/Q7chfz1qNe7aNEYWaEEtFYOd2MbDvAuvB/eKv44 Jqzg== X-Gm-Message-State: AIkVDXKDGlpkQIz6JVriHaGzN12saZqo2vBeui1mcV6ni76Xp6jxpZzvv9T4xG88hMvolkhbqtcYEW26qWtRnA== X-Received: by 10.31.212.2 with SMTP id l2mr3803817vkg.134.1484149415498; Wed, 11 Jan 2017 07:43:35 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 11 Jan 2017 15:43:25 +0000 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary=001a114eea8cb466250545d3768b Subject: Fwd: [RFC][Discussion] - list() reference syntax From: dave@mudsite.com (David Walker) --001a114eea8cb466250545d3768b Content-Type: text/plain; charset=UTF-8 [Sorry if this is a second time you get this, but email issues and all] Hi All, I had mentioned the other day my desire to look at, and attempt implementation of allowing by-reference assignment within list()'s. Andrea had created an RFC for this purpose 2+years ago, but withdrew it due to problems with implementation with the parsing/compiler of PHP 5. I've taken a shot at implementing this feature within PHP7 and have commandeered the RFC and would like to re-open it for discussion. I've attached to the RFC my current implementation which seems to be working in the cases I can think of. I'd be interested to hear from the community about if this feature is still desirable, and if so, if there are list() cases that I haven't thought about yet for test cases. RFC (sorry for awkward formatting, not sure if the issues with links in messages & mailinglist are fixed yet): http://wiki.php.net/rfc/list_reference_assignment Cheers -- Dave --001a114eea8cb466250545d3768b--