Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40929 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55316 invoked from network); 10 Oct 2008 17:02:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Oct 2008 17:02:14 -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 212.25.124.163 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 212.25.124.163 il-gw1.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.163] ([212.25.124.163:45479] helo=il-gw1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1C/A7-38373-59A8FE84 for ; Fri, 10 Oct 2008 13:02:13 -0400 Received: from us-ex1.zend.com ([192.168.16.5]) by il-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 10 Oct 2008 19:02:28 +0200 Received: from [192.168.16.110] ([192.168.16.110]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 10 Oct 2008 10:02:25 -0700 Message-ID: <48EF8AA1.7080901@zend.com> Date: Fri, 10 Oct 2008 10:02:25 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Lukas Kahwe Smith CC: PHP Development References: <3CF765DF-27AF-44FD-9ECF-BEBFC8A0AFCA@pooteeweet.org> In-Reply-To: <3CF765DF-27AF-44FD-9ECF-BEBFC8A0AFCA@pooteeweet.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 10 Oct 2008 17:02:25.0216 (UTC) FILETIME=[F7F71C00:01C92AF9] Subject: Re: [PHP-DEV] namespaces and alpha3 From: stas@zend.com (Stanislav Malyshev) Hi! > 3) Stas proposal I have two proposals, actually. 1. Leave functions (and constant) alone, i.e. namespace would ignore that. 1.1 Option: if you define function inside namespace, compiler could give an error (I don't like this option, but I mention it for the sake of completeness). 2. Leave functions/constants as they are now, and add the following syntax: Class::Name->method() for calling static methods (and referring to class constants), so that there would be a way to disambiguate calls in (rare, IMHO) situations where ambiguity may arise. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com