Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:20981 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98110 invoked by uid 1010); 2 Dec 2005 00:30:45 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 98095 invoked from network); 2 Dec 2005 00:30:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Dec 2005 00:30:45 -0000 X-Host-Fingerprint: 195.121.247.11 psmtp02.wxs.nl Solaris 8 (1) Received: from ([195.121.247.11:46789] helo=psmtp02.wxs.nl) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id F4/DD-14828-5B59F834 for ; Thu, 01 Dec 2005 19:30:45 -0500 Received: from [192.168.1.2] (ip3e830243.speed.planet.nl [62.131.2.67]) by psmtp02.wxs.nl (iPlanet Messaging Server 5.2 HotFix 2.02 (built Oct 21 2004)) with ESMTP id <0IQU001OFHF5QW@psmtp02.wxs.nl> for internals@lists.php.net; Fri, 02 Dec 2005 01:30:41 +0100 (MET) Date: Fri, 02 Dec 2005 01:30:53 +0100 In-reply-to: <91.3B.14828.8CB2F834@pb1.pair.com> To: Jessie Hernandez Cc: internals@lists.php.net Message-ID: <438F95BD.2090202@php.net> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 References: <91.3B.14828.8CB2F834@pb1.pair.com> Subject: Re: phpnamespaces.org! From: tularis@php.net ("M. Sokolewicz") hi, personally, I find :::A, ::A and such constructs *extremely* ugly. Might I suggest using a special keyword to denote global scoped classes? eg: global:::A and such. global already is a keyword, but I'm pretty sure it could be reused in this context. Plus, it clearly shows where you're getting it all from. - tul Jessie Hernandez wrote: > Hi l0t3k, > > Yes, this is how it's done in C++, but do we want to allow this syntax for > PHP? If so, > it'll either be :::A, ::A (can be used, but might be inconsistent as ":::" > is used everywhere else), or \A, depending on the final separator... > > > Regards, > > Jessie > > > > ""l0t3k"" wrote in message > news:E9.1A.14828.54A2F834@pb1.pair.com... > >>""Jessie Hernandez"" wrote in message >>news:FE.F6.14828.BA52F834@pb1.pair.com... >> >>>2) How will symbols be resolved inside namespaces? If a class "A" exists >>>in >>>namespace "N", and a global class "A" also exists, then by referencing >>>"A", >>>what should happen? Should the namespaced "A" be used? If so, then the >>>global "A" cannot be accessed from the namespace. Is this OK? These > > rules > >>>would need to be the same and affects the following contexts: >> >> i should know this, but does PHP use :: as the global scope resolver as > > in > >>C++ ? if so, >>namespaced A ==> $A >>global A ==> ::$A >> >>l0t3k