Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:20966 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35493 invoked by uid 1010); 1 Dec 2005 16:58:48 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 35478 invoked from network); 1 Dec 2005 16:58:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Dec 2005 16:58:48 -0000 X-Host-Fingerprint: 64.253.207.194 miami194.us.univision.com Received: from ([64.253.207.194:25980] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 91/3B-14828-8CB2F834 for ; Thu, 01 Dec 2005 11:58:48 -0500 Message-ID: <91.3B.14828.8CB2F834@pb1.pair.com> To: internals@lists.php.net References: Date: Thu, 1 Dec 2005 11:58:45 -0500 Lines: 38 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1506 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-Posted-By: 64.253.207.194 Subject: Re: phpnamespaces.org! From: jrhernandez05@gmail.com ("Jessie Hernandez") 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