Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25134 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 77170 invoked by uid 1010); 2 Aug 2006 15:42:27 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 77155 invoked from network); 2 Aug 2006 15:42:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Aug 2006 15:42:27 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; domainkeys=good DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 66.249.92.170 ug-out-1314.google.com Linux 2.4/2.6 Received: from ([66.249.92.170:42574] helo=ug-out-1314.google.com) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id 40/FC-45114-333C0D44 for ; Wed, 02 Aug 2006 11:22:27 -0400 Received: by ug-out-1314.google.com with SMTP id m3so1888869uge for ; Wed, 02 Aug 2006 08:22:24 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=h31dx/ipDz+tOtPRQ7+CRC9D9mR6fv9klPhjKWPwbBnEL8DYQ4KGigdww25tQGExKAm14IEtfr4DYr03ZYj9aSnpBbTU6BPtqand+1LXjV3I24coZ8wZRRBye3ZlUY/QovcCcVa+KkRYGMQt+OP2cyYYSBFANhrDuzE1SNOtQB8= Received: by 10.67.119.13 with SMTP id w13mr1227326ugm; Wed, 02 Aug 2006 08:22:24 -0700 (PDT) Received: by 10.66.220.11 with HTTP; Wed, 2 Aug 2006 08:22:24 -0700 (PDT) Message-ID: Date: Wed, 2 Aug 2006 17:22:24 +0200 To: "Robert Cummings" Cc: "Derick Rethans" , "Zeev Suraski" , "Lukas Smith" , internals@lists.php.net In-Reply-To: <1154531954.3034.24.camel@blobule> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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> <1154531954.3034.24.camel@blobule> Subject: Re: [PHP-DEV] RfC: rethink OO inheritance strictness From: pierre.php@gmail.com (Pierre) On 8/2/06, Robert Cummings wrote: > On Wed, 2006-08-02 at 16:07 +0200, Derick Rethans wrote: > > On Wed, 2 Aug 2006, Zeev Suraski wrote: > > > > > My recommendation: > > > - Add a new flag to methods (at the implementation level) that will allow to > > > flag them as 'strict' > > > > Have an example of what you mean here? > > Maybe something like the following... > > > class foo > { > function bleh( $p1, $p2 ) > { > echo "Bleh: $p1, $p2\n"; > } > } > > class fee extends foo > { > loose function bleh( $p1 ) > { > parent::bleh( $p1, $this->prop ); > } > } > > ?> > > I think I like it :D In this case, Except that I would prefer the other way 'round. The default should be the "loose one". --Pierre