Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65054 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74851 invoked from network); 21 Jan 2013 18:36:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jan 2013 18:36:55 -0000 Authentication-Results: pb1.pair.com header.from=rquadling@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rquadling@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.210.194 as permitted sender) X-PHP-List-Original-Sender: rquadling@gmail.com X-Host-Fingerprint: 209.85.210.194 mail-ia0-f194.google.com Received: from [209.85.210.194] ([209.85.210.194:34555] helo=mail-ia0-f194.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CF/00-08138-4CA8DF05 for ; Mon, 21 Jan 2013 13:36:54 -0500 Received: by mail-ia0-f194.google.com with SMTP id m10so701620iam.1 for ; Mon, 21 Jan 2013 10:36:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:reply-to:from:date:message-id:subject:to :content-type; bh=e0iTjir5GqBssBfoFQbk2mfAsOWgwrJYAjSE0xZ3MXM=; b=dPWCqmk/1bJJw09+wumawfy7XX0F1dpnXj0yUzB7jguMzRoz5n9ENnuYZj4PWbF79h 8M0y/GNfrHcKG3Et4ZCmgHr4Ktggbob/w6uhT6l2slaNKCl89q0LgqNf9saLl9toAbQu LAg4dbcV5Dzw3Quidvx0qbz7nLv55QzOAYiXPulyrTFnUodKOopvZXC3gvEPIJfiyWdL gMwXMpMo1N7CsThYsxZYUc82pzSx2uF0YNFR2MRDy8OPXITesyGG8Lom/cEb5aCAHnnT QC8ljdpVSxLvN3auxPj6MCkSSSYbt+jC+eD0H+KDM+FxnKYjVJLITYiOM7SWNhYlz4fW tm0A== X-Received: by 10.50.185.196 with SMTP id fe4mr9766644igc.17.1358793409535; Mon, 21 Jan 2013 10:36:49 -0800 (PST) MIME-Version: 1.0 Received: by 10.42.159.7 with HTTP; Mon, 21 Jan 2013 10:36:29 -0800 (PST) Reply-To: RQuadling@GMail.com Date: Mon, 21 Jan 2013 18:36:29 +0000 Message-ID: To: PHP internals Content-Type: text/plain; charset=UTF-8 Subject: References in rfc:propertygetsetsyntax From: rquadling@gmail.com (Richard Quadling) Hello. This may have already been covered, so apologies ... With https://wiki.php.net/rfc/propertygetsetsyntax-v1.2#references, the return by reference is handled by the use of &get{}. How about pass-by-reference for set{}? Normally, a function definition dictates this. But if $value is already passed, a reference to it (&$value) is not going to be referencing the external variable surely? Whilst objects are always passed by reference (I assume this is still the case for this rfc and I can see no reason why it isn't), and I think I can see the sort of issues that setting an accessor to a reference (binding the value of a property in this class to something external to the class - yeah - just eek!), is this an issue? Will users _want_ ... set(&$value){ $this->externally_linked_var = $value; } I'm not expecting any changes to anything, just looking for clarification. Regards, Richard. -- Richard Quadling Twitter : @RQuadling EE : http://e-e.com/M_248814.html Zend : http://bit.ly/9O8vFY