Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28548 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39711 invoked by uid 1010); 22 Mar 2007 14:26:42 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 39696 invoked from network); 22 Mar 2007 14:26:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Mar 2007 14:26:42 -0000 Authentication-Results: pb1.pair.com smtp.mail=cschneid@cschneid.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=cschneid@cschneid.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain cschneid.com from 195.226.6.51 cause and error) X-PHP-List-Original-Sender: cschneid@cschneid.com X-Host-Fingerprint: 195.226.6.51 darkcity.gna.ch Received: from [195.226.6.51] ([195.226.6.51:40706] helo=mail.gna.ch) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5A/83-00793-F1292064 for ; Thu, 22 Mar 2007 09:26:41 -0500 Received: from localhost (localhost [127.0.0.1]) by darkcity.gna.ch (Postfix) with ESMTP id 307FEA6168; Thu, 22 Mar 2007 15:26:37 +0100 (CET) Received: from unknown by localhost (amavisd-new, unix socket) id client-XXDMb62M; Thu, 22 Mar 2007 15:26:34 +0100 (CET) Received: from [192.168.1.72] (unknown [195.226.9.186]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by darkcity.gna.ch (Postfix) with ESMTP id E48D2A615A; Thu, 22 Mar 2007 15:26:31 +0100 (CET) Message-ID: <46029216.9090205@cschneid.com> Date: Thu, 22 Mar 2007 15:26:30 +0100 User-Agent: Thunderbird 1.5.0.10 (X11/20060911) MIME-Version: 1.0 To: Michael Walter CC: internals@lists.php.net References: <86478A67-DCA2-4000-9EF0-DA4338E8389B@omniti.com> <45FEFDCE.7050100@zend.com> <1174339527.24632.129.camel@blobule> <45FF01FE.6070504@zend.com> <698DE66518E7CA45812BD18E807866CE185525@us-ex1.zend.net> <698DE66518E7CA45812BD18E807866CE18559A@us-ex1.zend.net> <40259.216.230.84.67.1174435351.squirrel@www.l-i-e.com> <877e9a170703220436l267d2648jc99aaaf9cccecfdd@mail.gmail.com> <46028001.7060204@cschneid.com> <877e9a170703220719w4badd5a6y4345b508b3866131@mail.gmail.com> In-Reply-To: <877e9a170703220719w4badd5a6y4345b508b3866131@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at gna.ch Subject: Re: [PHP-DEV] PATCH: anonymous functions in PHP From: cschneid@cschneid.com (Christian Schneider) Michael Walter wrote: >> I find it all but obvious to being able to use non-local, non-global >> variables in PHP. It's one of the main PHP points IMHO that a variables >> is either local or explicitely accessed through $_GLOBALS (or super >> globals). It gives me a warm and fuzzy feeling that I know everything >> else is undefined and won't clash. > > Which seems to fit Andi's $_SCOPE proposal. Yes, but is a point against a real closure proposal. >> He said real-life examples (-:C > > Is that like "enterprise" examples? ;) No, it's like non-textbook example (which can also run on a Bird of Prey or a Klingon starship :-)) - Chris