Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41747 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53617 invoked from network); 7 Nov 2008 04:19:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Nov 2008 04:19:31 -0000 X-Host-Fingerprint: 68.0.90.221 ip68-0-90-221.tu.ok.cox.net Received: from [68.0.90.221] ([68.0.90.221:27518] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 74/20-51848-2D1C3194 for ; Thu, 06 Nov 2008 23:19:30 -0500 To: internals@lists.php.net,Stan Vassilev | FM Message-ID: <4913C1CF.3070305@gmail.com> Date: Thu, 06 Nov 2008 22:19:27 -0600 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 CC: internals@lists.php.net References: <4EA88C3A8A2747989925A5D21448FCE7@pc> <491333F2.5070105@zend.com> <91597FF883CD4BA3861A5C72134BCA56@pc> In-Reply-To: <91597FF883CD4BA3861A5C72134BCA56@pc> Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 081106-0, 11/06/2008), Outbound message X-Antivirus-Status: Clean X-Posted-By: 68.0.90.221 Subject: Re: [PHP-DEV] Call it: allow reserved words in a class or not? From: spam.goes.in.here@gmail.com (Josh Thompson) Stan Vassilev | FM wrote: > use foo\bar\*; > > $a = new A(); > $b = new B(); > ... I may be asking this question out of ignorance, but here goes: What is the difference between the following snippets? // global.php use \foo\bar\*; $a = new A(); $b = new B(); // namespaced.php namespace \foo\bar; $a = new A(); $b = new B(); I don't understand why in the namespaced example no one seems to have a problem with new A() meaning new \foo\bar\A(), but we can't use the * wildcard to do the same thing? -- Joshua Thompson Mechanical Engineer/Software Developer http://www.schmalls.com