Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:23571 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34888 invoked by uid 1010); 18 May 2006 22:28:31 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 34873 invoked from network); 18 May 2006 22:28:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 May 2006 22:28:31 -0000 X-PHP-List-Original-Sender: helly@php.net X-Host-Fingerprint: 81.169.182.136 ajaxatwork.net Linux 2.4/2.6 Received: from ([81.169.182.136:38528] helo=strato.aixcept.de) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 2F/87-19568-D05FC644 for ; Thu, 18 May 2006 18:28:30 -0400 Received: from baumbart.mbo (dslb-084-063-059-137.pools.arcor-ip.net [84.63.59.137]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by strato.aixcept.de (Postfix) with ESMTP id 702C635C1D1; Fri, 19 May 2006 00:28:26 +0200 (CEST) Date: Fri, 19 May 2006 00:28:36 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <507481812.20060519002836@marcus-boerger.de> To: Richard Lynch Cc: Sebastian Bergmann , internals@lists.php.net In-Reply-To: <34626.67.108.68.36.1147990956.squirrel@www.l-i-e.com> References: <6C67DAD9-B812-415A-BFD6-A4E963371551@prohost.org> <89716569.20060517210330@marcus-boerger.de> <34626.67.108.68.36.1147990956.squirrel@www.l-i-e.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Flamewar Summary From: helly@php.net (Marcus Boerger) Hello Richard, well my mail was a bit out of context or at the wrong reply to Sebastian. He was talking about issues with callin static functions with bypassing $this as a parameter.... best regards marcus Friday, May 19, 2006, 12:22:36 AM, you wrote: >>> Sebastian Bergmann wrote: >>>>> Addition of support for dynamic statics ala: class foo {} >>>>> foo::$bar = 1; > On Wed, May 17, 2006 2:03 pm, Marcus Boerger wrote: >> there is a technical issue besides slowdown. We have to work around >> the >> fact that suddenly a function might get $this as a normal variable >> (remember >> the examples give on this list included that). Right now $this is >> handled by >> a special zval not stored in the local or global symol table bit >> EG(this). >> This will become a major maintanance hell. Also allowing $this as >> normal >> variable again will confuse people because suddenly after 5.1 they are >> under some circumstances suddenly able to change $this. That said, we >> will >> also get a bunch of new bug reports, but who cares, it's the others >> dealing >> with them. And all for what? to refuse using globals as they are to >> php'isch? or to use an array in a declared sttaic variable as that can >> already be done and is also far to php'ish? > I'm not sure it helps, or even if I understand the problem, but > perhaps... > A reasonable compromise might be that only scalars could be used for a > late-binding static foo::$bar = VALUE; > Similar to what is (used to be?) allow for variable initialization > within a class definition. > Or, perhaps, scalars and arrays of scalars allowed, but NO OBJECTS. > It seems like the majority of people who find this late-binding static > stuff useful are not really wanting to cram instance references, much > less $this into there... > This presumes that whatever was done for class property initialization > could be readily repeated at the junction of an assignment to a static > property, which might be a completely incorrect assumption. > This is also post-vote, which might render it meaningless, which is > fine -- just an idea if the vote is inconclusive or turns out to be > void. > -- > Like Music? > http://l-i-e.com/artists.htm Best regards, Marcus