Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37334 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16486 invoked from network); 30 Apr 2008 06:37:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Apr 2008 06:37:25 -0000 Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.162] ([212.25.124.162:54319] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 65/EC-28930-3A318184 for ; Wed, 30 Apr 2008 02:37:24 -0400 Received: from us-ex1.zend.com ([192.168.16.5]) by mx1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 30 Apr 2008 09:38:15 +0300 Received: from [192.168.17.79] ([192.168.17.79]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 29 Apr 2008 23:38:11 -0700 Message-ID: <4818139B.1080301@zend.com> Date: Tue, 29 Apr 2008 23:37:15 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: Robert Cummings CC: internals@lists.php.net References: <48169695.9040803@omegavortex.net> <1209512914.7057.296.camel@blobule> <10845a340804291714g7eb10362m17af4abecbadf0e4@mail.gmail.com> <7dd2dc0b0804291801m627a7c31h8dd796d7fa1d1257@mail.gmail.com> <1209518549.7057.313.camel@blobule> <7dd2dc0b0804292051o4fd5e77eu6f8faecad93c378a@mail.gmail.com> <1209528338.7057.349.camel@blobule> <7dd2dc0b0804292127p484d8c7g9cf852f0a79a8dc6@mail.gmail.com> <1209532046.7057.368.camel@blobule> <7dd2dc0b0804292222h29c8845k456f6546cbdbece6@mail.gmail.com> <1209535288.7057.406.camel@blobule> In-Reply-To: <1209535288.7057.406.camel@blobule> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 30 Apr 2008 06:38:11.0680 (UTC) FILETIME=[C295CE00:01C8AA8C] Subject: Re: [PHP-DEV] Class Properties in Interfaces? From: stas@zend.com (Stanislav Malyshev) > $hair = new Hair(); > $hair->colour = 'brown'; You can do this without pre-defining any properties. > The above is a much less wordy way of doing the following: No, it is not the same. You can override what happens when you do setColor - like send notification to some other object or set also matching color for the shoes, etc. :) but you can't have any behavior attached to setting value. > This is a feature of a dynamic language, not a flaw in my argument. And Not having rigid definitions of properties is also a feature of dynamic language ;) -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com