Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31185 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35029 invoked by uid 1010); 23 Jul 2007 14:25:45 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 35014 invoked from network); 23 Jul 2007 14:25:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jul 2007 14:25:45 -0000 Authentication-Results: pb1.pair.com smtp.mail=brianm@dealnews.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=brianm@dealnews.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain dealnews.com designates 129.41.69.185 as permitted sender) X-PHP-List-Original-Sender: brianm@dealnews.com X-Host-Fingerprint: 129.41.69.185 smtp.dealnews.com Linux 2.5 (sometimes 2.4) (4) Received: from [129.41.69.185] ([129.41.69.185:54468] helo=smtp.dealnews.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 31/4C-32314-66AB4A64 for ; Mon, 23 Jul 2007 10:25:45 -0400 Received: (qmail 2016 invoked from network); 23 Jul 2007 10:25:36 -0400 Received: from unknown (HELO mail.dealnews.com) (10.1.1.7) by -H with (DHE-RSA-AES256-SHA encrypted) SMTP; 23 Jul 2007 10:25:36 -0400 Received: (qmail 24238 invoked from network); 23 Jul 2007 10:25:36 -0400 Received: from h148.21.91.75.ip.alltel.net (HELO ?10.1.6.4?) (brianm@75.91.21.148) by -H with ESMTPA; 23 Jul 2007 10:25:36 -0400 Message-ID: <46A4BA4F.6090506@dealnews.com> Date: Mon, 23 Jul 2007 09:25:19 -0500 User-Agent: Thunderbird 2.0.0.5 (Macintosh/20070716) MIME-Version: 1.0 To: =?ISO-8859-2?Q?Pawe=B3_Stradomski?= CC: internals@lists.php.net References: <46A31D95.2080407@fischer.name> <46A4661A.6080202@zend.com> <200707231140.55535.pstradomski@gmail.com> In-Reply-To: <200707231140.55535.pstradomski@gmail.com> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Question about Namespace patch From: brianm@dealnews.com (Brian Moon) > import SQLAlchemy::Column > import SQLAlchemy::Table > import SQLAlchemy::Join > import SQLAlchemy::ForeignKey > import SQLAlchemy::Session > import SQLAlchemy::Transaction Why use namespaces if you are going to do this? You are just bringing your classes into the global name space. The nice thing about namespaces IMO, is that I don't have to have a class named SQLAlchemy_Transaction. I can just have a class named Transaction in the SQLAlchemy namespace. I can then create a new object using $obj = new SQLAlchemy::Transaction. -- Brian Moon Senior Developer ------------------------------ http://dealnews.com/ It's good to be cheap =)