Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32896 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89311 invoked by uid 1010); 20 Oct 2007 23:39:53 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 89296 invoked from network); 20 Oct 2007 23:39:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Oct 2007 23:39:53 -0000 Authentication-Results: pb1.pair.com header.from=chuck@horde.org; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=chuck@horde.org; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain horde.org designates 66.92.78.250 as permitted sender) X-PHP-List-Original-Sender: chuck@horde.org X-Host-Fingerprint: 66.92.78.250 dsl092-078-250.bos1.dsl.speakeasy.net Received: from [66.92.78.250] ([66.92.78.250:50840] helo=technest.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 60/4E-03598-8C19A174 for ; Sat, 20 Oct 2007 19:39:52 -0400 Received: by technest.org (Postfix, from userid 33) id 90B977F00D; Sat, 20 Oct 2007 19:39:46 -0400 (EDT) Received: from tatiana (tatiana [192.168.1.2]) by technest.org (Horde Framework) with HTTP; Sat, 20 Oct 2007 19:39:46 -0400 Message-ID: <20071020193946.12273zalj5q8cngg@technest.org> Date: Sat, 20 Oct 2007 19:39:46 -0400 To: Stanislav Malyshev Cc: Gregory Beaver , internals@lists.php.net MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.2-cvs) Subject: Re: [PHP-DEV] Re: Order of class resolution with namespaces and autoload From: chuck@horde.org (Chuck Hagenbuch) Quoting Stanislav Malyshev : > This is even better than requiring, and makes the intent very clear. =20 > I don't think it decreases intuitiveness, on the contrary - from the =20 > look of the code it is immediately clear which exception would be =20 > used. I went ahead and tried to apply this (explicit imports of classes in =20 the same namespace) to the library that I'm working on, and it doesn't =20 work. Here's the same example as before with 1.php and 2.php, but this =20 time we're trying to avoid ambiguity by importing Test::Exception in =20 each file: 1.php: ------