Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:10231 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60627 invoked by uid 1010); 1 Jun 2004 19:47:14 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 60595 invoked from network); 1 Jun 2004 19:47:13 -0000 Received: from unknown (HELO smtprelay02.ispgateway.de) (62.67.200.157) by pb1.pair.com with SMTP; 1 Jun 2004 19:47:13 -0000 Received: (qmail 8347 invoked from network); 1 Jun 2004 19:47:12 -0000 Received: from unknown (HELO heinz-ruediger) (126482@[212.202.104.234]) (envelope-sender ) by smtprelay02.ispgateway.de (qmail-ldap-1.03) with SMTP for ; 1 Jun 2004 19:47:12 -0000 To: Timm Friebe , internals@lists.php.net Date: Tue, 01 Jun 2004 21:47:49 +0200 MIME-Version: 1.0 Message-ID: <40BCF985.26931.1418D27@localhost> Priority: normal In-reply-to: <1086117233.281.15.camel@localhost> References: <20040601131122.36657.qmail@pb1.pair.com> X-mailer: Pegasus Mail for Windows (v4.12a) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Subject: Re: [PHP-DEV] Use of 'self' in static function in subclass From: fb@fbeyer.com ("Ferdinand Beyer") On 1 Jun 2004 at 21:13, Timm Friebe wrote: > Yes: self is bound at compiletime. It would need to be changed to > evaluation at runtime und would be far more useful then. > > [...] > > I wouldn't mind chaning self in the first place, though. I prefer your solution to evaluate self at runtime instead of adding a new keyword 'this'. The second one would only be confused with $this. Many people (including me) are already familiar with 'self' and expect it to refer to the class from within it is called. -- Ferdinand Beyer