Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31847 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48500 invoked by uid 1010); 22 Aug 2007 16:25:38 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 48485 invoked from network); 22 Aug 2007 16:25:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Aug 2007 16:25:38 -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:23204] helo=us-ex1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 58/B0-38100-0836CC64 for ; Wed, 22 Aug 2007 12:25:38 -0400 Received: from [127.0.0.1] ([192.168.16.180]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 22 Aug 2007 09:25:33 -0700 Message-ID: <46CC637B.9070500@zend.com> Date: Wed, 22 Aug 2007 09:25:31 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Gregory Beaver CC: internals Mailing List References: <46CBA2B6.2010600@chiaraquartet.net> In-Reply-To: <46CBA2B6.2010600@chiaraquartet.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 22 Aug 2007 16:25:33.0887 (UTC) FILETIME=[107AD4F0:01C7E4D9] Subject: Re: [PHP-DEV] [PATCH] bracketed namespace, unset import, removal of namespace blah; From: stas@zend.com (Stanislav Malyshev) > 1) adds "unset import" syntax for declaring a namespace to have local > import scope (it does NOT affect variable scope or the global > class/function table) I don't like it. What's "unset import"? Seems to be very artificial concept. > be as intuitive as possible. Having a separate scope by default for > import that does not inherit from the global scope is not very intuitive. Yep, it isn't. But it's the only concept that we saw so far that is consistent and logical. > So, instead of resetting current_import by default, this patch makes > import global by default and local by explicit syntax via: But this syntax, unfortunately, doesn't make it better. If the user would have to manually control all the imports it'd be very irritating. And what if he wants to keep one import and not keep another? Also, the problem of namespace being influenced by external code still not solved. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com