Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:20995 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48526 invoked by uid 1010); 2 Dec 2005 09:21:18 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 48511 invoked from network); 2 Dec 2005 09:21:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Dec 2005 09:21:18 -0000 X-Host-Fingerprint: 194.109.253.196 mediawave.xs4all.nl Linux 2.5 (sometimes 2.4) (4) Received: from ([194.109.253.196:51977] helo=mediawave.nl) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 78/4A-14828-D0210934 for ; Fri, 02 Dec 2005 04:21:18 -0500 Received: from mediawave.nl (mediawave.nl [127.0.0.1]) by mediawave.nl (8.13.4/8.13.4) with ESMTP id jB29LDTH006520; Fri, 2 Dec 2005 10:21:13 +0100 Received: (from apache@localhost) by mediawave.nl (8.13.4/8.13.4/Submit) id jB29LChv006519; Fri, 2 Dec 2005 10:21:12 +0100 X-Authentication-Warning: mediawave.nl: apache set sender to bart@mediawave.nl using -f Received: from 137.224.252.10 (SquirrelMail authenticated user bart) by www.mediawave.nl with HTTP; Fri, 2 Dec 2005 10:21:12 +0100 (CET) Message-ID: <64699.137.224.252.10.1133515272.squirrel@www.mediawave.nl> In-Reply-To: References: <20.BA.56276.A1BC8834@pb1.pair.com> <7A.02.14828.9B9AF834@pb1.pair.com> <98.42.14828.81BAF834@pb1.pair.com> <438FD635.1080308@gmail.com> <14.27.14828.90EFF834@pb1.pair.com> Date: Fri, 2 Dec 2005 10:21:12 +0100 (CET) To: "Stanislav Malyshev" Cc: internals@lists.php.net User-Agent: SquirrelMail/1.4.6 [CVS]-0.cvs20050812.1.fc4 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: [PHP-DEV] Re: namespace separator ideas From: bart@mediawave.nl ("Bart de Boer") Furthermore. The problem with echo 'a::b::c();' would only occur if the code structure would be like this: namespace a { namespace b { function c() { } } class b { function c() { } } } However, should it be legal to give a class the same name as a namespace that's in the same scope? Maybe the code above should simply fail with a message: 'Fatal error: Cannot redeclare class/namespace b' This way we could use '::' :D > BdB>>The above can either mean "call function c in namespace b under > BdB>>namespace a" or "call static method c of class b under namespace a". > BdB>>Since this cannot be determined, "::" cannot be used. > > This provided we support nested namespaces. Do we need them? > -- > Stanislav Malyshev, Zend Products Engineer > stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115 >