Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:47052 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 61865 invoked from network); 24 Feb 2010 17:45:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Feb 2010 17:45:55 -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.117 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 63.205.162.117 us-mr1.zend.com Received: from [63.205.162.117] ([63.205.162.117:56681] helo=us-mr1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E4/A7-19370-0D5658B4 for ; Wed, 24 Feb 2010 12:45:54 -0500 Received: from us-gw1.zend.com (us-ex1.zend.net [192.168.16.5]) by us-mr1.zend.com (Postfix) with ESMTP id 122A743FCD; Wed, 24 Feb 2010 09:44:51 -0800 (PST) Received: from [192.168.27.13] ([192.168.27.13]) by us-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 24 Feb 2010 09:45:49 -0800 Message-ID: <4B8565CC.2010802@zend.com> Date: Wed, 24 Feb 2010 09:45:48 -0800 Organization: Zend Technologies User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.7) Gecko/20100111 Lightning/1.0b2pre Thunderbird/3.0.1 MIME-Version: 1.0 To: "Ionut G. Stan" , internals@lists.php.net References: <4B54FC87.8070106@zend.com> <4F.56.22457.408955B4@pb1.pair.com> <4B55D850.8000604@zend.com> <4B808294.1070801@keryx.se> <4B844DBA.4050804@zend.com> <4B845E0C.7040005@gmail.com> <20100223232328.GE16412@phcomp.co.uk> <4B84CEB1.2070400@zend.com> <20100224102812.GB4565@phcomp.co.uk> In-Reply-To: <20100224102812.GB4565@phcomp.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 24 Feb 2010 17:45:49.0526 (UTC) FILETIME=[339FC760:01CAB579] Subject: Re: [PHP-DEV] variables in namespaces, was: On closures and lamdba From: stas@zend.com (Stanislav Malyshev) Hi! > It is not a question of number -- you may have some module where the > functions need to share a couple of variables between themselves, eg a file handle. Congratulations, you have just discovered why OO exists :) > Objects are not always the answer. If you refuse to use language construct that fits your purpose and try to reinvent it in a backwards way - it won't end up in anything useful. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com