Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31163 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82740 invoked by uid 1010); 23 Jul 2007 03:36:11 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 82725 invoked from network); 23 Jul 2007 03:36:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jul 2007 03:36:11 -0000 Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 63.205.162.114 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 63.205.162.114 unknown Windows 2000 SP4, XP SP1 Received: from [63.205.162.114] ([63.205.162.114:52522] helo=us-ex1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FC/80-09961-92224A64 for ; Sun, 22 Jul 2007 23:36:11 -0400 Received: from [127.0.0.1] ([192.168.17.52]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.1830); Sun, 22 Jul 2007 20:36:07 -0700 Message-ID: <46A42220.7010600@zend.com> Date: Sun, 22 Jul 2007 20:36:00 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: Markus Fischer CC: internals References: <46A31D95.2080407@fischer.name> In-Reply-To: <46A31D95.2080407@fischer.name> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 23 Jul 2007 03:36:07.0316 (UTC) FILETIME=[9AAAA540:01C7CCDA] Subject: Re: [PHP-DEV] Question about Namespace patch From: stas@zend.com (Stanislav Malyshev) > 1) Why is "import Foo" a no-op? > Shouldn't it import everything define inside Foo? No, it shouldn't. > 2) How can I import all classes from a namespace at once? Use namespace::class. > 3) Shouldn't there be an error when importing a class which already > existing in the current scope? Example I think there should be. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com