Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41103 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3962 invoked from network); 15 Oct 2008 23:02:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Oct 2008 23:02:15 -0000 Authentication-Results: pb1.pair.com smtp.mail=lew21st@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=lew21st@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 66.249.92.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: lew21st@gmail.com X-Host-Fingerprint: 66.249.92.170 ug-out-1314.google.com Received: from [66.249.92.170] ([66.249.92.170:29289] helo=ug-out-1314.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DB/E0-33247-67676F84 for ; Wed, 15 Oct 2008 19:02:15 -0400 Received: by ug-out-1314.google.com with SMTP id k3so1485300ugf.37 for ; Wed, 15 Oct 2008 16:02:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:cc:mime-version:content-type :content-transfer-encoding:content-disposition:message-id; bh=x9lfg51q67Zlkdb8rOjYS+JUkqRi1qF5f/DWRIAcx4k=; b=cEochbSIXE6SMfHR+fC/MLX/qd47rpk7Oz49squxBGwiUWX+7Iy+3KynrEbPBlQQBZ FKh6w1exKTlhFebX8fe2+cv57YWA8MFcrtBePrV4wizpNZV9WQkXamkVAUKRAdYJZ5v1 FldZGUy9/0tBHHyfB3QQgHwqJ0GjClo5a50mc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:cc :mime-version:content-type:content-transfer-encoding :content-disposition:message-id; b=psT14+s84UibW7C1O+K/htByaiDwLv431UAnuem5Ik/qTDvrSY62sU0dafogDUpeFU 12ttiFXLG6AuI4GoloLBb07dR7ziWKVvCMow9TIfOjqwHLhEHhe7lCbHQp3a+szPWNnZ Dy5BkCEZVusAyvZnTgFieyHAsH0U8gSguqKrg= Received: by 10.67.10.18 with SMTP id n18mr5986478ugi.27.1224111731451; Wed, 15 Oct 2008 16:02:11 -0700 (PDT) Received: from pecet.localnet (ip-89.171.103.226.static.crowley.pl [89.171.103.226]) by mx.google.com with ESMTPS id 2sm2454235nfv.5.2008.10.15.16.02.08 (version=SSLv3 cipher=RC4-MD5); Wed, 15 Oct 2008 16:02:09 -0700 (PDT) To: Greg Beaver Date: Thu, 16 Oct 2008 00:59:56 +0200 User-Agent: KMail/1.10.1 (Linux/2.6.25.16-0.1-default; KDE/4.1.2; i686; ; ) References: <48F653FF.5010106@chiaraquartet.net> In-Reply-To: <48F653FF.5010106@chiaraquartet.net> Cc: PHP Developers Mailing List MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <200810160059.56509.lew21st@gmail.com> Subject: Re: [PHP-DEV] my last attempt at sanity with namespaces From: lew21st@gmail.com (Janusz Lewandowski) Hi, Conflict between namespaced functions and static class methods: I think that #4 solution is the best one. If it will be accepted, it would be possible to extend namespaces in PHP6. For example, it would be possible to allow mixing namespaces and classes with same names, and disallow only mixing namespaced functions / static class methods. PHP 5.3 is too nearly for such a change, but in PHP6 you can make static class methods the same thing as functions and namespaced functions, with one additional feature for them (and maybe namespaced functions) - support for self::, static:: and parent::. This way, it will be also possible to add support for having both dynamic method and static method with the same name, but e.g. other parameters (like String::substring($string, 4, 2) and $string->substring(4, 2)). Resolving access to internal classes: I like your solution, it's much better than current resolution rules. Janusz Lewandowski