Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37387 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39819 invoked from network); 30 Apr 2008 19:44:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Apr 2008 19:44:27 -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 78.46.69.2 as permitted sender) X-PHP-List-Original-Sender: lars@strojny.net X-Host-Fingerprint: 78.46.69.2 milch.schokokeks.org Received: from [78.46.69.2] ([78.46.69.2:46667] helo=milch.schokokeks.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9B/04-13507-A1CC8184 for ; Wed, 30 Apr 2008 15:44:27 -0400 Received: from [192.168.0.100] (xdsl-87-78-213-244.netcologne.de [::ffff:87.78.213.244]) (AUTH: PLAIN lars@schokokeks.org, SSL: TLSv1/SSLv3,256bits,CAMELLIA256-SHA) by milch.schokokeks.org with esmtp; Wed, 30 Apr 2008 21:44:23 +0200 id 000000000000C010.000000004818CC17.000058DF To: Stanislav Malyshev Cc: internals@lists.php.net In-Reply-To: <4818C792.700@zend.com> References: <48169695.9040803@omegavortex.net> <339714303.20080429114607@marcus-boerger.de> <4817596B.8020109@zend.com> <1209494001.31298.17.camel@localhost> <4818A615.9010905@zend.com> <1209582844.3784.20.camel@localhost> <4818C792.700@zend.com> Date: Wed, 30 Apr 2008 21:44:22 +0200 Message-ID: <1209584662.3784.27.camel@localhost> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=_milch.schokokeks.org-22751-1209584663-0001-2" X-Mailer: Evolution 2.22.0 Subject: Re: [PHP-DEV] Class Properties in Interfaces? From: lars@strojny.net (Lars Strojny) --=_milch.schokokeks.org-22751-1209584663-0001-2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Am Mittwoch, den 30.04.2008, 12:25 -0700 schrieb Stanislav Malyshev: [...] > How? For that you'd need the interpreter to actually understand what the=20 > code does. While I'd like to have such thing one day (provided it does=20 > not rebel and decide to kill all humans, of course ;) PHP interpreter is=20 > definitely not it. Take a look at this: class Mother { public $foo =EF=BB=BF { =EF=BB=BF=EF=BB=BF =EF=BB=BF =EF=BB=BF=EF=BB=BF =EF=BB=BF function get(= ) =EF=BB=BF { =20 } =EF=BB=BF } } class Child extends Mother { =EF=BB=BF public $foo { } } In Child $foo is redefined without a getter-method. This breaks the substitution principle and the language can detect this. cu, Lars --=_milch.schokokeks.org-22751-1209584663-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) iQIcBAABAgAGBQJIGMwWAAoJECQPF+sCY6wHPIwP+wRYazD1tzL6gJ3yYplN1fXO SGorbiqa1uk7kvU4BWpls0HFec/ia08WEgCdFXmx3ZioGCz/RVPAw2z5X9gLXqO7 kn8Tix06Y+2p8T54jowBAvKE0r3wNzoqTnIhsi4/ytUt1hjoQsh6gXaQhqXVaOd+ kJCVGKA5rRL2gKb9e4H80aCy8N/C/g7TVvzTCmKDC7IM8Ddmd4KMyDBY7UQVEIIl rZTDy6lDXlJazhCjdrv3ZWFpvNXoEaGRlRNL1fAzIovQMGzMcKeAACgeyf0yED2p sRcZV5j9RJcex5AA7VsYtgzffV4WC+AlHkp3qG/iHvy2lDpl7NJ/s1JGupbOx8Vx iySXhEkxznOUFs8y171Gcj70aabKosky7IlFKY8OlJwtiv00Q4Cs6qYrhZKGgNAL sYHf6YrmMmoIgCsPNjMA6Oa2+Pg/tspKM0ahlr+UEFKIR6a7CQ5ZxA+lyG0DBXdv LasM5IxTaOQESk92Sz4vRbTIqsNlniZnz4o/pG9/u3ojQnXBTh5myVHG/VLrniLr +UJxqBtShQvdDZOOYdIxIPoBk0wk4ZFhgQYVhmkNTOEd5qNAosHAu9bHfo8Egfow qSIJzGYpSDMu3EICJlBo+iqJbuh33xkA0tnp/+PEdWQbvUljzwukd5a2dqQw1/2b 31tZcl5XvTn8xEFk5+uc =Guum -----END PGP SIGNATURE----- --=_milch.schokokeks.org-22751-1209584663-0001-2--