Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:38560 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23603 invoked from network); 24 Jun 2008 03:44:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Jun 2008 03:44:05 -0000 Authentication-Results: pb1.pair.com smtp.mail=larry@garfieldtech.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=larry@garfieldtech.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain garfieldtech.com from 76.96.62.56 cause and error) X-PHP-List-Original-Sender: larry@garfieldtech.com X-Host-Fingerprint: 76.96.62.56 qmta06.westchester.pa.mail.comcast.net Received: from [76.96.62.56] ([76.96.62.56:56567] helo=QMTA06.westchester.pa.mail.comcast.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E7/34-32235-48D60684 for ; Mon, 23 Jun 2008 23:44:04 -0400 Received: from OMTA12.westchester.pa.mail.comcast.net ([76.96.62.44]) by QMTA06.westchester.pa.mail.comcast.net with comcast id hc4R1Z00C0xGWP85608s00; Tue, 24 Jun 2008 03:44:01 +0000 Received: from earth.ufp ([24.13.255.226]) by OMTA12.westchester.pa.mail.comcast.net with comcast id hfk11Z0054trKQ83Yfk18A; Tue, 24 Jun 2008 03:44:01 +0000 X-Authority-Analysis: v=1.0 c=1 a=HJgdlzbYWkMA:10 a=SQY8r0CBaesA:10 a=_XgK8rh9UIsk1vrR_ksA:9 a=82c1Hb4vK43KFR1-gFn8i5TaZK4A:4 a=FHBbIDN7CdwA:10 a=LY0hPdMaydYA:10 Received: from localhost (localhost [127.0.0.1]) by earth.ufp (Postfix) with ESMTP id 42538D870E for ; Mon, 23 Jun 2008 22:43:56 -0500 (CDT) Received: from earth.ufp ([127.0.0.1]) by localhost (earth.ufp [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MiVtZJnpD2O8 for ; Mon, 23 Jun 2008 22:43:56 -0500 (CDT) Received: from luna.local (unknown [192.168.42.104]) by earth.ufp (Postfix) with ESMTP id E5DBBD7C65 for ; Mon, 23 Jun 2008 22:43:55 -0500 (CDT) To: internals@lists.php.net Date: Mon, 23 Jun 2008 22:43:53 -0500 User-Agent: KMail/1.9.9 References: <485FD5E5.6070002@zend.com> <1214252514.7067.2.camel@localhost> In-Reply-To: <1214252514.7067.2.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <200806232243.53851.larry@garfieldtech.com> Subject: Re: [PHP-DEV] LSB forward_static_call() From: larry@garfieldtech.com (Larry Garfield) On Monday 23 June 2008 3:21:54 pm Lars Strojny wrote: > Hi Stas, > > Am Montag, den 23.06.2008, 09:57 -0700 schrieb Stanislav Malyshev: > [...] > > > Why having parent:: at all then? You could always use the class name, > > right? But for some reason we do have parent:: - and that reason is > > that using explicit class name is not a good style in this context, it > > both obscures the intent and makes unnecessary dependencies in the > > code. Now imagine on top of that we have name:: and parent:: work > > differently, so you don't have choice but using name:: for certain > > things. > > An wide-spreaded usage example for non-forwarding calls is? I would > estimate, that in 70% percent, it doesn't matter, what kind of call > strategy is choosen, 29% percent will be forwarding calls and only 1% > are non-forwarding. > > cu, Lars I implemented a task-specific ORM last fall where the lack of late static binding really bit me, resulting in the need to duplicate code. I'll see about sending it to the list tomorrow from work as a practice example we can kick around. :-) (At least I think it's an LSB issue; if it isn't, I'm sure I'll get flamed for being off topic. ) -- Larry Garfield larry@garfieldtech.com