Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35635 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8903 invoked by uid 1010); 20 Feb 2008 00:49:49 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 8888 invoked from network); 20 Feb 2008 00:49:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Feb 2008 00:49:49 -0000 Authentication-Results: pb1.pair.com header.from=lars@strojny.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=lars@strojny.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain strojny.net designates 85.10.204.248 as permitted sender) X-PHP-List-Original-Sender: lars@strojny.net X-Host-Fingerprint: 85.10.204.248 milch.schokokeks.org Received: from [85.10.204.248] ([85.10.204.248:42182] helo=milch.schokokeks.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 33/D4-55225-B297BB74 for ; Tue, 19 Feb 2008 19:49:49 -0500 Received: from [192.168.0.8] (xdsl-87-78-210-149.netcologne.de [::ffff:87.78.210.149]) (AUTH: PLAIN lars@schokokeks.org, SSL: TLSv1/SSLv3,256bits,CAMELLIA256-SHA) by milch.schokokeks.org with esmtp; Wed, 20 Feb 2008 01:49:45 +0100 id 0000000000020002.0000000047BB7929.00002042 To: Stanislav Malyshev Cc: php@stefan-marr.de, internals@lists.php.net In-Reply-To: <47BB7667.5030202@zend.com> References: <001c01c87264$3c01b4e0$b4051ea0$@de> <1203461114.24580.45.camel@localhost> <47BB5EFE.4080704@zend.com> <1203465456.3529.3.camel@localhost> <47BB6D6A.4080408@zend.com> <1203466541.3529.15.camel@localhost> <47BB7667.5030202@zend.com> Date: Wed, 20 Feb 2008 01:49:44 +0100 Message-ID: <1203468584.3529.19.camel@localhost> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=_milch.schokokeks.org-8258-1203468585-0001-2" X-Mailer: Evolution 2.21.91 Subject: Re: [PHP-DEV] RFC: Traits for PHP From: lars@strojny.net (Lars Strojny) --=_milch.schokokeks.org-8258-1203468585-0001-2 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, Am Dienstag, den 19.02.2008, 16:37 -0800 schrieb Stanislav Malyshev: [...] > replace() does the right thing - it uses add() and delete(). The problem=20 > here is that current proposal allows any user to yank the ground from=20 > under the feet of the trait API creator and replace various bits of the=20 > class with any other functionality without any regard for the=20 > interdependency between them, so either each function in the traits=20 > should be completely self-reliant and never use other functions - which=20 > prevents one from create complete non-trivial APIs - or every rename=20 > should be painfully verified with original trait developer or against=20 > the actual source code, breaking the abstraction. Both don't seem too=20 > practical to me. To allow myself a final judgement, I must play around with it of course but I have the feeling, that managing interdependency wouldn't be that hard. Normally you would just use the trait. If you are brave and really know what you are doing, you can rename and excludes symbols. cu, Lars --=_milch.schokokeks.org-8258-1203468585-0001-2 Content-Type: application/pgp-signature; name="signature.asc" Content-Transfer-Encoding: 7bit Content-Description: Dies ist ein digital signierter Nachrichtenteil -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (GNU/Linux) iQIcBAABAgAGBQJHu3knAAoJECQPF+sCY6wH3pMP/01B9AM+RBwnjq3gAZFWpmtQ d1BM989DTzDmF+58kX+XIEFp6i9Q6Lrc5TSnEsuwfTil9I2JOXXGZUioie0hJi/3 wc8B0k1zAToPJZ+uOzf907Tahuopk65+o7GT+1fir4WaHh2++5kXuDe4R85gyEa2 0lh2ExT9x5wlCALNkwREO/52ggZLj3ugquPaK7XdrvpqlDRk8NhhimnU5zinYAZL ZjgHnPCiRQ2T2aTTpBa0zpCvnGOlqa3AINfZcz6JRBzYinJf/oyOcS662OdlD5/F NE8+Jb7LdsNppXih37nhFeo6V5cgh8YWh+r7qTuG0qdLuyYUpO2sCd4BGF/SaWSr ltNYdNZt9Aib+VCx+JhNDxwYXxxn0eGnjBPhW+2FHunVk3J9nJPdIytvov6WPjoX I2W/lo0iduG65nTPQfIH4TF/KRu1dyxvW1Zb1GuHRja0yJAJCKbOaQQccNWp1sVr qZdBkGV4EWCgjDx4ycEOVJeqhjXt4MqUHFQp87lNsDx0Y48yz3ekN9MDX3+3QlgU o4ryzQZ5KVV4sLHz954srfA+36gAguX4tT64KULD3FatRDhPghzKJl+G2C3iIkRJ aBZBlyyq4IvDOaEF/b+1d5RipDh2Lnm7oC/n3O2qPXPZqDwzP9R1CD5MQLA+SMHp /gXuVmPuvKMuLU1ZF404 =oAUm -----END PGP SIGNATURE----- --=_milch.schokokeks.org-8258-1203468585-0001-2--