Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33302 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19085 invoked by uid 1010); 19 Nov 2007 12:07:16 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 19070 invoked from network); 19 Nov 2007 12:07:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Nov 2007 12:07:16 -0000 Authentication-Results: pb1.pair.com smtp.mail=jochem@iamjochem.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=jochem@iamjochem.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain iamjochem.com from 194.109.193.121 cause and error) X-PHP-List-Original-Sender: jochem@iamjochem.com X-Host-Fingerprint: 194.109.193.121 mx1.moulin.nl Linux 2.6 Received: from [194.109.193.121] ([194.109.193.121:56627] helo=mx1.moulin.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 36/F4-22759-17C71474 for ; Mon, 19 Nov 2007 07:07:15 -0500 Received: from localhost (localhost [127.0.0.1]) by mx1.moulin.nl (Postfix) with ESMTP id D9E68278914; Mon, 19 Nov 2007 13:07:09 +0100 (CET) X-Virus-Scanned: amavisd-new at moulin.nl Received: from mx1.moulin.nl ([127.0.0.1]) by localhost (mx1.moulin.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7EBuR0iGAtYa; Mon, 19 Nov 2007 13:07:04 +0100 (CET) Received: from [192.168.1.24] (bspr.xs4all.nl [194.109.161.228]) by mx1.moulin.nl (Postfix) with ESMTP id E18D02788FC; Mon, 19 Nov 2007 13:07:04 +0100 (CET) Message-ID: <47417C65.8010708@iamjochem.com> Date: Mon, 19 Nov 2007 13:07:01 +0100 User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Stanislav Malyshev CC: Mike Lively , internals@lists.php.net References: <4740C654.3020302@digitalsandwich.com> <474154E0.4070302@zend.com> In-Reply-To: <474154E0.4070302@zend.com> X-Enigmail-Version: 0.95.5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] late static binding php6 From: jochem@iamjochem.com (Jochem Maas) Stanislav Malyshev wrote: >> Rest assured that this is not the bad kind of 'more complex' I believe > > I'm afraid I must disagree. The feature that was missing was to know the > true calling class name. That was implemented. You can build from it, > there's no need to add further complication to the language. You can > easily find out the calling class for static call, you can easily find > it's parent, provided one exists, you can easily call any method of this > class. class A { static function find($id) { // lets try and find a 'something' } } class B extends A {} // I'd like a 'B' please bob. $b = B::find( 1 ); are you saying that A::find() can tell that it was called as B::find() ?