Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:41917 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75183 invoked from network); 14 Nov 2008 21:09:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Nov 2008 21:09:41 -0000 X-Host-Fingerprint: 83.6.252.43 abdk43.neoplus.adsl.tpnet.pl Received: from [83.6.252.43] ([83.6.252.43:1318] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 72/BB-07308-119ED194 for ; Fri, 14 Nov 2008 16:09:39 -0500 Message-ID: <72.BB.07308.119ED194@pb1.pair.com> To: internals@lists.php.net Followup-To: php.internals Lines: 31 Date: Fri, 14 Nov 2008 22:09:32 +0100 References: <49188698.1050505@grudl.com> <49188BD0.9090100@kukulich.net> <4918A3F8.4070809@chiaraquartet.net> <4919A9BD.2020703@grudl.com> <491DE402.4000600@chiaraquartet.net> Organization: CrystalPoint User-Agent: KNode/0.99.01 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit X-Posted-By: 83.6.252.43 Subject: Re: Namespace resolution rules has been changed? From: m.kurzyna@crystalpoint.pl (Marcin Kurzyna) Greg Beaver wrote: > > namespace foo\classes; > use sneaky\devil as foo; > > class buh extends foo\stuff {} > \\ this extends sneaky\devil\stuff. oops... should have used \foo\stuff > ?> accualy I have a question about this if i may: why doesn't the use statement fall under the same resolution rules as general code? that is why foo isn't foo\classses\sneaky\devil? personally i'd find this much more consistent if *anything* below namespace declaration was relative to it. and i could always use absolute declaration explicitly if i'd require it: resolves as A == \foo\bar use \bar as B; /// ->resolves as B == \bar ?> TIA m.