Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41846 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20674 invoked from network); 10 Nov 2008 22:54:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Nov 2008 22:54:29 -0000 Authentication-Results: pb1.pair.com smtp.mail=david@grudl.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=david@grudl.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain grudl.com from 80.79.20.227 cause and error) X-PHP-List-Original-Sender: david@grudl.com X-Host-Fingerprint: 80.79.20.227 keeper.orionet.cz Received: from [80.79.20.227] ([80.79.20.227:47819] helo=keeper.orionet.cz) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 31/14-34173-3ABB8194 for ; Mon, 10 Nov 2008 17:54:28 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by keeper.orionet.cz (Postfix) with ESMTP id 67B151840971 for ; Mon, 10 Nov 2008 23:54:25 +0100 (CET) Received: from keeper.orionet.cz ([127.0.0.1]) by localhost (keeper.orionet.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17706-04 for ; Mon, 10 Nov 2008 23:54:25 +0100 (CET) Received: by keeper.orionet.cz (Postfix, from userid 1005) id 4918E184097E; Mon, 10 Nov 2008 23:54:25 +0100 (CET) Received: from [192.168.1.23] (unknown [77.240.188.66]) by keeper.orionet.cz (Postfix) with ESMTP id 01CC71840971; Mon, 10 Nov 2008 23:54:24 +0100 (CET) Message-ID: <4918BB83.3000906@grudl.com> Date: Mon, 10 Nov 2008 23:53:55 +0100 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Gregory Beaver CC: internals@lists.php.net References: <49188698.1050505@grudl.com> <49188BD0.9090100@kukulich.net> <4918A3F8.4070809@chiaraquartet.net> In-Reply-To: <4918A3F8.4070809@chiaraquartet.net> Content-Type: multipart/alternative; boundary="------------000108020203020606040400" X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at example.com Subject: Re: Namespace resolution rules has been changed? From: david@grudl.com (David Grudl) --------------000108020203020606040400 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit > Can you please point us to an example describing this best practice? For example Namespace Naming Guidelines in .NET (http://msdn.microsoft.com/en-us/library/893ke618(VS.71).aspx) "A nested namespace should have a dependency on types in the containing namespace. For example, the classes in the System.Web.UI.Design depend on the classes in System.Web.UI. However, the classes in System.Web.UI do not depend on the classes in System.Web.UI.Design." Or Zend Framework source code. There is no class extending class from subpackage (class Zend_View extends Zend_View_Abstract is not subpackage, viz http://framework.zend.com/wiki/display/ZFPROP/Naming+conventions+for+2.0+-+Matthew+Ratzloff). * > *In PHP nothing bubbles, hence this doesn't work. We have just one exception to this, with global functions in local space which "bubble up" to global even without the prefix (which I believe will come to bite us later on). * *I understand but I think it doesn't matter. PHP has not qualified identifiers yet, so any qualified identifier can be understand as and only as fully qualified identifier (ie "absolute path"), like former namespace implementation does, and not like "relative path". David Grudl --------------000108020203020606040400--