Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31233 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97004 invoked by uid 1010); 24 Jul 2007 03:25:22 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 96982 invoked from network); 24 Jul 2007 03:25:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Jul 2007 03:25:22 -0000 Authentication-Results: pb1.pair.com smtp.mail=ceo@l-i-e.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=ceo@l-i-e.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain l-i-e.com from 67.139.134.202 cause and error) X-PHP-List-Original-Sender: ceo@l-i-e.com X-Host-Fingerprint: 67.139.134.202 o2.hostbaby.com FreeBSD 4.7-5.2 (or MacOS X 10.2-10.3) (2) Received: from [67.139.134.202] ([67.139.134.202:2881] helo=o2.hostbaby.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 89/22-11831-F1175A64 for ; Mon, 23 Jul 2007 23:25:21 -0400 Received: (qmail 91699 invoked by uid 98); 24 Jul 2007 03:25:23 -0000 Received: from 127.0.0.1 by o2.hostbaby.com (envelope-from , uid 1013) with qmail-scanner-2.01 (clamdscan: 0.88.7/3741. Clear:RC:1(127.0.0.1):. Processed in 0.178455 secs); 24 Jul 2007 03:25:23 -0000 Received: from localhost (HELO l-i-e.com) (127.0.0.1) by localhost with SMTP; 24 Jul 2007 03:25:22 -0000 Received: from 209.254.223.2 (SquirrelMail authenticated user ceo@l-i-e.com) by www.l-i-e.com with HTTP; Mon, 23 Jul 2007 22:25:22 -0500 (CDT) Message-ID: <41968.209.254.223.2.1185247522.squirrel@www.l-i-e.com> In-Reply-To: <46A45ABF.4030001@zend.com> References: <46A31D95.2080407@fischer.name> <46A42220.7010600@zend.com> <46A45ABF.4030001@zend.com> Date: Mon, 23 Jul 2007 22:25:22 -0500 (CDT) To: "Stanislav Malyshev" Cc: "Derick Rethans" , "Markus Fischer" , "internals" Reply-To: ceo@l-i-e.com User-Agent: Hostbaby Webmail MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: [PHP-DEV] Question about Namespace patch From: ceo@l-i-e.com ("Richard Lynch") On Mon, July 23, 2007 2:37 am, Stanislav Malyshev wrote: >>>> 2) How can I import all classes from a namespace at once? >>> Use namespace::class. >> >> That's not the answer to the question. Markus was asking how to >> import >> *all* classes from a namespace at *once*. > > That IS the answer. You don't. You use namespace::class instead. The > whole purpose was to get them OUT of the global space, no reason to > bring them back in. I have to say that often I'd just as soon suck the whole library in if it's a small enough project and I'm only using 1 library. I don't really want to type FullyQualifiedLibname:: a zillion times... I personally am not a zealot about getting things out of global namespace -- I just want the dang libraries to be able to not conflict when I used two and they both decided to call something 'Date'. :-) I'll then want to pull in the whole library that I use the "most" and use a fully-qualified name for the one I use the "least" Maybe that's just me, but I suspect it's actually pretty common. -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?