Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31861 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 24537 invoked by uid 1010); 22 Aug 2007 23:51:06 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 24522 invoked from network); 22 Aug 2007 23:51:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Aug 2007 23:51:06 -0000 Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=stas@zend.com; 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:22837] helo=us-ex1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E8/E0-18325-8EBCCC64 for ; Wed, 22 Aug 2007 19:51:05 -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 16:51:01 -0700 Message-ID: <46CCCBE3.50309@zend.com> Date: Wed, 22 Aug 2007 16:50:59 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Gregory Beaver CC: internals Mailing List , Dmitry Stogov References: <46CBA2B6.2010600@chiaraquartet.net> <46CC637B.9070500@zend.com> <46CCC9D6.8060106@chiaraquartet.net> In-Reply-To: <46CCC9D6.8060106@chiaraquartet.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 22 Aug 2007 23:51:01.0670 (UTC) FILETIME=[4B7ADC60:01C7E517] Subject: Re: [PHP-DEV] [PATCH] bracketed namespace, unset import, removal of namespace blah; From: stas@zend.com (Stanislav Malyshev) > The purpose of all my patches is to make it possible to combine multiple > namespaces into a single file. It looks like namespace {} syntax > introduces much more trouble than it is worth. Heh, why do you think we chose not to do it - because we are bracketophobic bigots? ;) > file2.php: > include 'file1.php'; > namespace two; > function thingo() {} > ?> Not sure what this one does, esp. include but if it's just global space there than ok. > namespace one; > class whatever { > } > other_php_stuff(); > > namespace two; > function thingo() {} > ?> I think we could live with this one, import problems are less severe then. We still need to check if we don't have any weird cases, but if we don't find any then it might work... > namespace one; > function thing() {echo 'hi';} > > namespace __::__main; > function thing() {} > one::thing(); > ?> __::__ look like some weird ASCII art, maybe we need something better for it. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com