Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:17933 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43555 invoked by uid 1010); 13 Aug 2005 00:30:59 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 43538 invoked from network); 13 Aug 2005 00:30:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Aug 2005 00:30:58 -0000 X-Host-Fingerprint: 81.169.182.136 ajaxatwork.net Linux 2.4/2.6 Received: from ([81.169.182.136:57953] helo=strato.aixcept.de) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 8C/62-33075-24F3DF24 for ; Fri, 12 Aug 2005 20:30:58 -0400 Received: from [192.168.1.3] (dsl-082-083-240-043.arcor-ip.net [82.83.240.43]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by strato.aixcept.de (Postfix) with ESMTP id 501C235C270; Sat, 13 Aug 2005 02:50:19 +0200 (CEST) Date: Sat, 13 Aug 2005 02:31:06 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <1595964887.20050813023106@marcus-boerger.de> To: Lukas Smith Cc: Rasmus Lerdorf , internals In-Reply-To: <42FD320B.8030105@php.net> References: <42FCE0E4.604@lerdorf.com> <1114795828.20050813012424@marcus-boerger.de> <42FD320B.8030105@php.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] PHP 6.0 Wishlist From: helly@php.net (Marcus Boerger) Hello Lukas, Saturday, August 13, 2005, 1:34:35 AM, you wrote: > Marcus Boerger wrote: >> 11. class operator cleanup >> :: static >> -> non static >> this would allow to do more things like accessing static members/consts >> from anywhere a class is allowed etc. (if proposed that before incl. >> patch lookup the archieves). > could you elaborate what you mean with this .. > currently (some?) "static" calls from within a method will still result > in a non static method call ... like parent::fobar() > are you talking about cleaning this up? static=static, non-static=non-static and no moe ZEND_ACC_ALLOW_STATIC > also do you remember my complaints about the fact that static and > inheritance dont mix well, since alot of things are done at compile time > for performance reasons .. does this also fall into this topic? well you could make your own oint in disallowing "if() class" or in other words allow class definitions only in the main block. If then you go for forward declarations also "class SomeClassName; /* no block after ; */" you'd gain a bit: - being able to use upcoming perl 6 compiler namely parrot (if someone wants to do the work). Full support with upcoming php idl compiler. But we have to hear about that from the author. - moving all inheritance to compile time - already a tiny bit of a spead increase - together with apc or some other cache another bit of a speed increase. On the contray you'd loose some flexibilty (not that i'd like it buut others do) and btw php is the only language in use i knwo of which is capable of this. best regards marcus