Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31157 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73645 invoked by uid 1010); 22 Jul 2007 09:04:35 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 73630 invoked from network); 22 Jul 2007 09:04:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jul 2007 09:04:35 -0000 Authentication-Results: pb1.pair.com smtp.mail=markus@fischer.name; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=markus@fischer.name; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fischer.name from 213.46.255.22 cause and error) X-PHP-List-Original-Sender: markus@fischer.name X-Host-Fingerprint: 213.46.255.22 viefep18-int.chello.at Solaris 10 (beta) Received: from [213.46.255.22] ([213.46.255.22:46868] helo=viefep32-int.chello.at) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4F/62-57534-1AD13A64 for ; Sun, 22 Jul 2007 05:04:35 -0400 Received: from genuine.home ([213.47.89.232]) by viefep32-int.chello.at (InterMail vM.7.08.02.02 201-2186-121-104-20070414) with ESMTP id <20070722090430.WDXM26358.viefep32-int.chello.at@genuine.home> for ; Sun, 22 Jul 2007 11:04:30 +0200 Received: from chello213047089232.17.14.vie.surfer.at ([213.47.89.232] helo=[192.168.1.51]) by genuine.home with esmtpa (Exim 4.50) id 1ICXHT-0001Jx-E7 for internals@lists.php.net; Sun, 22 Jul 2007 10:59:12 +0200 Message-ID: <46A31D95.2080407@fischer.name> Date: Sun, 22 Jul 2007 11:04:21 +0200 User-Agent: Thunderbird 2.0.0.5 (Windows/20070716) MIME-Version: 1.0 To: internals X-Enigmail-Version: 0.95.2 OpenPGP: id=C2272BD0; url=http://markus.fischer.name/my_public_key.txt Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Score: -35 X-Spam-Level: --- X-Spam-Report: Spam detection software, running on the system "genuine.home", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi, I've a few questions about the namespace patch: 1) Why is "import Foo" a no-op? Shouldn't it import everything define inside Foo? [...] Content analysis details: (-3.6 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -3.3 ALL_TRUSTED Did not pass through any untrusted hosts -2.0 BAYES_20 BODY: Bayesian spam probability is 5 to 20% [score: 0.1835] 2.0 RCVD_IN_SORBS_DUL RBL: SORBS: sent directly from dynamic IP address [213.47.89.232 listed in dnsbl.sorbs.net] 0.1 RCVD_IN_NJABL_DUL RBL: NJABL: dialup sender did non-local SMTP [213.47.89.232 listed in combined.njabl.org] -0.4 AWL AWL: From: address is in the auto white-list Subject: Question about Namespace patch From: markus@fischer.name (Markus Fischer) Hi, I've a few questions about the namespace patch: 1) Why is "import Foo" a no-op? Shouldn't it import everything define inside Foo? 2) How can I import all classes from a namespace at once? Like question 1) actually. "import Foo::*" doesn't work. 3) Shouldn't there be an error when importing a class which already existing in the current scope? Example ---------------8<-------------------- ns2.php: php ns1.php Namespace class ---------------8<-------------------- I read the thread an I know that I can still call access the global class with ::Bar ... but is this a intuitive behaviour? thanks, - Markus