Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:30449 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10072 invoked by uid 1010); 4 Jul 2007 19:14:31 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 10056 invoked from network); 4 Jul 2007 19:14:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jul 2007 19:14:31 -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:30316] helo=us-ex1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 60/B2-25128-191FB864 for ; Wed, 04 Jul 2007 15:14:31 -0400 Received: from [127.0.0.1] ([192.168.17.19]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 4 Jul 2007 12:14:18 -0700 Message-ID: <468BF189.9090101@zend.com> Date: Wed, 04 Jul 2007 12:14:17 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: Brian Moon CC: Dmitry Stogov , internals@lists.php.net References: <002b01c7be39$4b1eee00$737a81d4@thinkpad> <468BAFA9.2040503@dealnews.com> In-Reply-To: <468BAFA9.2040503@dealnews.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 04 Jul 2007 19:14:19.0024 (UTC) FILETIME=[854A6100:01C7BE6F] Subject: Re: [PHP-DEV] Simple Namespace Proposal From: stas@zend.com (Stanislav Malyshev) > Does this mean that a project like Phorum could declare the same > namespace at the top of all of our files and all the code in those files > would exist in the same namespace? Theoretically, yes, that's the idea. Practically there could be some problems with variable names - right now the patch does not resolve names, so if you do $name = "func", $name("foo"); it might not work, you'd need to use __NAMESPACE__ currently. I'm not sure how much of a trouble it is. > Or, would list.php have to import the Phorum namespace? no, no import is necessary for same-namespace references. > Also, I don't see any mention of variables in namespaces. Will there be > no effect on variables? No namespace variables, right. For grouping variables you have arrays and classes, should be good enough ;) -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com