Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:60287 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30746 invoked from network); 24 Apr 2012 17:16:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Apr 2012 17:16:42 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 67.192.241.203 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 67.192.241.203 smtp203.dfw.emailsrvr.com Linux 2.6 Received: from [67.192.241.203] ([67.192.241.203:58675] helo=smtp203.dfw.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 96/81-34190-8FFD69F4 for ; Tue, 24 Apr 2012 13:16:41 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp20.relay.dfw1a.emailsrvr.com (SMTP Server) with ESMTP id 7C6FC258C60; Tue, 24 Apr 2012 13:16:38 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp20.relay.dfw1a.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 1E27E2C8013; Tue, 24 Apr 2012 13:16:30 -0400 (EDT) Message-ID: <4F96DFEC.30300@sugarcrm.com> Date: Tue, 24 Apr 2012 10:16:28 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: Clint M Priest CC: "internals@lists.php.net" References: <9570D903A3BECE4092E924C2985CE48555BEC3C2@MBX202.domain.local> In-Reply-To: <9570D903A3BECE4092E924C2985CE48555BEC3C2@MBX202.domain.local> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] RFC: Property get/set syntax (added isset/unset and references) From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > public $dataArray { > > &get { return &$this->_dataArray; } This is not correct. Please read: http://php.net/manual/en/language.references.return.php > These would also include automatic implementations which call the > respective functions on the backing field. I could see only allowing > isset/unset automatic implementations if get/set were also specified > as automatic implementations. Could you please explain what is the use of automatic implementations? I.e., why won't you just have a variable? -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227