Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84401 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87922 invoked from network); 7 Mar 2015 11:29:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Mar 2015 11:29:03 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@tutteli.ch; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=php@tutteli.ch; sender-id=pass Received-SPF: pass (pb1.pair.com: domain tutteli.ch designates 80.74.154.78 as permitted sender) X-PHP-List-Original-Sender: php@tutteli.ch X-Host-Fingerprint: 80.74.154.78 ns73.kreativmedia.ch Linux 2.6 Received: from [80.74.154.78] ([80.74.154.78:42123] helo=hyperion.kreativmedia.ch) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1D/50-19995-DF0EAF45 for ; Sat, 07 Mar 2015 06:29:02 -0500 Received: (qmail 7893 invoked from network); 7 Mar 2015 12:28:58 +0100 Received: from 187.228.106.92.dynamic.wline.res.cust.swisscom.ch (HELO RoLaptop) (92.106.228.187) by ns73.kreativmedia.ch with ESMTPSA (AES256-SHA encrypted, authenticated); 7 Mar 2015 12:28:58 +0100 To: "'Patrick Schaaf'" , "'Philip Sturgeon'" Cc: "'internals'" References: <010801d055d3$ed5a8fa0$c80faee0$@tutteli.ch> <004d01d05696$9d797410$d86c5c30$@tutteli.ch> In-Reply-To: Date: Sat, 7 Mar 2015 12:28:56 +0100 Message-ID: <001b01d058c9$e6983570$b3c8a050$@tutteli.ch> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQJxwsbb9wST+BIjRKGtjwqOE5ESqAD9Z68EAfTmIxMCLH9e9gFaP0IGAYUaiZmbjht+cA== Content-Language: de-ch Subject: AW: [PHP-DEV] [RFC] Anonymous Classes From: php@tutteli.ch ("Robert Stoll") > -----Urspr=C3=BCngliche Nachricht----- > Von: Patrick Schaaf [mailto:php@bof.de] > Gesendet: Samstag, 7. M=C3=A4rz 2015 08:22 > An: Philip Sturgeon > Cc: internals; Robert Stoll > Betreff: Re: [PHP-DEV] [RFC] Anonymous Classes >=20 > Am 06.03.2015 20:14 schrieb "Philip Sturgeon" : > > > > Right, this here RFC has been drastically improved. > > > > https://wiki.php.net/rfc/anonymous_classes > > > > Anyone got any doubts or troubles at this point? >=20 > Can we / could we do "extends self", "extends static", or even = "extends $someclassname" ? >=20 > The first two could be handy in factory like object methods, and the = last one generally in factory methods. >=20 > best regards > Patrick Personally, I would go step by step. First introduce anonymous classes = and then extend it with features like the one described above - should = be less controversial. The last construct idea described by you would introduce dynamic = inheritance to a certain degree and I am not so sure if that is really a = good idea Cheers, Robert