Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31179 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24221 invoked by uid 1010); 23 Jul 2007 09:41:33 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 24199 invoked from network); 23 Jul 2007 09:41:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jul 2007 09:41:33 -0000 Authentication-Results: pb1.pair.com header.from=pstradomski@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=pstradomski@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.134.191 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pstradomski@gmail.com X-Host-Fingerprint: 209.85.134.191 mu-out-0910.google.com Received: from [209.85.134.191] ([209.85.134.191:62657] helo=mu-out-0910.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B8/04-24049-9C774A64 for ; Mon, 23 Jul 2007 05:41:32 -0400 Received: by mu-out-0910.google.com with SMTP id w1so1770545mue for ; Mon, 23 Jul 2007 02:41:25 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:from:reply-to:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=V51CaTki0axOv0FGIjgbS4EBn/HUOTAtl9RNOem+cXDkba/IiYIRugqU1Y7uKaXQBhEGnK6qlchhFUeSKZxoKjgdS8xc8NGg6KXn/xeWisosl4Hz4p8nmxptY0Och/aTN85ud19XJGyuHuo7HlcKu/SJxtUHeBRabpV0Mslq0zU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:reply-to:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=GbqrCdhL7n+hEQsqrMCejvJN64L5x96z0Nwf1ZvKUoHtrV32dG5EU5+g4BdnA1iaWr2dZKmqgoceWb1BhMGef60yY90TqfoB/cGWETghjMHqPZQw8/PGm0miqm+yc3hElHptMgiPhrE5Lw101JHB0XIIzS+XbpdYjmc8IUMqkig= Received: by 10.82.152.16 with SMTP id z16mr1788363bud.1185183684682; Mon, 23 Jul 2007 02:41:24 -0700 (PDT) Received: from ?10.0.2.7? ( [213.158.196.70]) by mx.google.com with ESMTPS id f6sm15959931nfh.2007.07.23.02.41.22 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 23 Jul 2007 02:41:23 -0700 (PDT) Reply-To: =?iso-8859-2?q?Pawe=B3_Stradomski?= To: internals@lists.php.net Date: Mon, 23 Jul 2007 11:40:55 +0200 User-Agent: KMail/1.9.5 References: <46A31D95.2080407@fischer.name> <46A4661A.6080202@zend.com> In-Reply-To: <46A4661A.6080202@zend.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-ID: <200707231140.55535.pstradomski@gmail.com> Subject: Re: [PHP-DEV] Question about Namespace patch From: pstradomski@gmail.com (=?iso-8859-2?q?Pawe=B3_Stradomski?=) Stanislav Malyshev wrote: > > working with a large library and have to import a lot of classes, the > > way this works is nothing but a pain. We would be better off not using > > namespaces at all, in this case. Thus, the problem has not been solved. > > Once more, you DO NOT have to import a lot of classes. Please do read > what I write. You SHOULD NOT import classes in global space. Namespaces > are NOT the way to bring all classes in global space, and it should not > be done. OK, so suppose I want to have four namespaces for my project: MyApp for some shared code, MyApp::Model MyApp::Controller MyApp::View Now in many places in my code in Model I'd use some ORM library - let's ass= ume=20 it's similar to python's SQLAlchemy. Now is there any way for me to have=20 access **in Model namespace** to all classes from SQLAlchemy namespace=20 without using import SQLAlchemy::Column import SQLAlchemy::Table import SQLAlchemy::Join import SQLAlchemy::ForeignKey import SQLAlchemy::Session import SQLAlchemy::Transaction and tens of other classes? I know your patch makes it possible to use fully= =20 qualified names everywhere. =2D-=20 Pawe=B3 Stradomski