Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91701 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17783 invoked from network); 16 Mar 2016 17:50:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Mar 2016 17:50:32 -0000 Authentication-Results: pb1.pair.com header.from=bobwei9@hotmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=bobwei9@hotmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain hotmail.com designates 65.55.111.95 as permitted sender) X-PHP-List-Original-Sender: bobwei9@hotmail.com X-Host-Fingerprint: 65.55.111.95 blu004-omc2s20.hotmail.com Received: from [65.55.111.95] ([65.55.111.95:56145] helo=BLU004-OMC2S20.hotmail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 44/D9-48430-7EC99E65 for ; Wed, 16 Mar 2016 12:50:32 -0500 Received: from BLU436-SMTP139 ([65.55.111.72]) by BLU004-OMC2S20.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Wed, 16 Mar 2016 10:50:29 -0700 X-TMN: [0V8CdJbnV9/zLlMhgvzTyGdPu+qLnZma] X-Originating-Email: [bobwei9@hotmail.com] Message-ID: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) In-Reply-To: <1458149992.3969.2.camel@kuechenschabe> Date: Wed, 16 Mar 2016 18:50:23 +0100 CC: Phil Sturgeon , "internals@lists.php.net" Content-Transfer-Encoding: quoted-printable References: <1458149992.3969.2.camel@kuechenschabe> To: =?utf-8?Q?Johannes_Schl=C3=BCter?= X-Mailer: Apple Mail (2.3112) X-OriginalArrivalTime: 16 Mar 2016 17:50:26.0683 (UTC) FILETIME=[529194B0:01D17FAC] Subject: Re: [PHP-DEV] [RFC Discussion] Typed Properties From: bobwei9@hotmail.com (Bob Weinand) > Am 16.03.2016 um 18:39 schrieb Johannes Schl=C3=BCter = : >=20 > On Wed, 2016-03-16 at 12:36 -0400, Phil Sturgeon wrote: >> Hello everyone, >>=20 >> I have completed the draft for an RFC, to add Typed Properties. The >> patch has been written by the one and only Joe Watkins. >>=20 >> https://wiki.php.net/rfc/typed-properties >=20 > I'm no fan of all this typing business, but that's a lost case. = Anyways: > What about references? (yeah, references should die, but currently = they > still exist) >=20 > What's expected here: >=20 > class A { > public int $i; > } >=20 > $a =3D new A(); > $r =3D &$a->i; > $r =3D "foobar"; >=20 > johannes The patch currently prevents that. It prevents all creation of references to properties. The reason is technical: We'd basically need typed zvals. Or add some sort of write callback to typed references. If you have a clean solution to these issues, you're more than welcome = to contribute here. Bob=