Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:10207 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36776 invoked by uid 1010); 1 Jun 2004 14:12:50 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 36744 invoked from network); 1 Jun 2004 14:12:49 -0000 Received: from unknown (HELO sara.dreamhost.com) (66.33.193.59) by pb1.pair.com with SMTP; 1 Jun 2004 14:12:49 -0000 Received: from [192.168.0.152] (mail.appliedsec.com [69.17.65.231]) by sara.dreamhost.com (Postfix) with ESMTP id CE2459F10C; Tue, 1 Jun 2004 07:12:48 -0700 (PDT) Message-ID: <40BC8EE0.5080905@velum.net> Date: Tue, 01 Jun 2004 10:12:48 -0400 User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ferdinand Beyer Cc: Stephan Schmidt , internals@lists.php.net References: <20040601131122.36657.qmail@pb1.pair.com> <40BCA8A3.17236.59BA8@localhost> In-Reply-To: <40BCA8A3.17236.59BA8@localhost> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Use of 'self' in static function in subclass From: hans@velum.net (Hans Lellelid) Ferdinand Beyer wrote: > On 1 Jun 2004 at 15:21, Stephan Schmidt wrote: > > >>Furthermore this renders the template-method pattern quite > > useless, so > >>IMHO it should be changed. > > > He should define an abstract method Foo::Baz() here. > Yes, I agree that design-wise that would be better -- but it will still fail w/ E_FATAL in PHP if the method is abstract ("cannot call abstract method Foo::Baz() in ...."). Hans