Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25127 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 77587 invoked by uid 1010); 2 Aug 2006 13:32:55 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 77572 invoked from network); 2 Aug 2006 13:32:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Aug 2006 13:32:55 -0000 X-Host-Fingerprint: 80.123.98.46 unknown Received: from ([80.123.98.46:26660] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id 26/82-45114-589A0D44 for ; Wed, 02 Aug 2006 09:32:54 -0400 To: internals@lists.php.net,Zeev Suraski Message-ID: <44D0A983.8030203@php.net> Date: Wed, 02 Aug 2006 15:32:51 +0200 User-Agent: Thunderbird 1.5.0.4 (X11/20060615) MIME-Version: 1.0 CC: Lukas Smith References: <18810497049.20060801234124@marcus-boerger.de> <1154478748.6599.16.camel@blobule> <16.85.45114.FF370D44@pb1.pair.com> <7.0.1.0.2.20060802153423.0d046278@zend.com> In-Reply-To: <7.0.1.0.2.20060802153423.0d046278@zend.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Posted-By: 80.123.98.46 Subject: Re: [PHP-DEV] RfC: rethink OO inheritance strictness From: mike@php.net (Michael Wallner) Zeev Suraski wrote: > My recommendation: > - Add a new flag to methods (at the implementation level) that will allow to flag them as 'strict' > - In case such a strict method is improperly overridden - error out (E_ERROR) Zeev, ain't your recommendation already covered by interfaces? > - In case a non-strict method is improperly overridden - emit E_STRICT > - Consider adding userland ability to set entire classes or methods as strict Regards, -- Michael