Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40357 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81154 invoked from network); 8 Sep 2008 17:55:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Sep 2008 17:55:15 -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 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:24447] helo=il-gw1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DF/50-13670-20765C84 for ; Mon, 08 Sep 2008 13:55:15 -0400 Received: from us-ex1.zend.com ([192.168.16.5]) by il-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 8 Sep 2008 20:56:23 +0300 Received: from [192.168.16.68] ([192.168.16.68]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 8 Sep 2008 10:56:20 -0700 Message-ID: <48C56743.2060706@zend.com> Date: Mon, 08 Sep 2008 10:56:19 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Elizabeth M Smith CC: internals@lists.php.net References: <486FA5FB.1000300@php.net> <48C55855.4080602@zend.com> <48C5624A.1040901@zend.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 08 Sep 2008 17:56:20.0329 (UTC) FILETIME=[33062D90:01C911DC] Subject: Re: [PHP-DEV] Re: towards a 5.3 release From: stas@zend.com (Stanislav Malyshev) Hi! > This doesn't work at all > > The closest you can do is > use Foo::Bar as F; > F::myfunction; > ?> That's the right way to go. If you want functions in global space, put them there. If not, then use namespace syntax. BTW, what is so bad in F::myfunction that it makes it absolutely useless? > which kind of defeats the purpose of having functions in namespaces at > all, why not just use a class with static methods at this point. I didn't see a lot of use of having functions in namespaces from the start, but if you could explain what your point is - i.e. why do you want functions that are declared in namespaces and still are in the global space - I could maybe understand the concern better. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com