Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45976 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 94212 invoked from network); 8 Nov 2009 10:05:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Nov 2009 10:05:22 -0000 Authentication-Results: pb1.pair.com header.from=rquadling@googlemail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=rquadling@googlemail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 209.85.218.213 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: rquadling@googlemail.com X-Host-Fingerprint: 209.85.218.213 mail-bw0-f213.google.com Received: from [209.85.218.213] ([209.85.218.213:45025] helo=mail-bw0-f213.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B6/41-21516-0E796FA4 for ; Sun, 08 Nov 2009 05:05:21 -0500 Received: by bwz5 with SMTP id 5so2587874bwz.23 for ; Sun, 08 Nov 2009 02:05:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=v8f+hEFkaUKSJntVCpnzGqkieII+BIPTVuIgGAD/YX8=; b=Yyd29ECvOZc0xGYh6HVTkhSryZoTdsXAID99JRCrw2QYYaHqoVkiFXmfY3AGn1OMxm rs1c70sVpaDkixXU54+lWHbVYQTpopu5SudVi+bxHl90sC38OxSxiixicTnBGolbqZUl RrYEfFAv6GDFM5iOVayVq5krMSTRJJYmf5XV8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; b=jac4Uh9UUa4JE2mRTzpjybkVN4uTcIgK0s6JL0FQfCtL4ip03J56YE+/X+5Wp/o1is Z1u3zIcG0sMsi4Iu8PKb2XU+h4duQvw0PVrsjEKeyrF61CthEo1GHY407AouOkownXs4 iL9XSOiokqr5ohIXptU6PsMkJNlhzmksN3ELc= MIME-Version: 1.0 Received: by 10.223.22.133 with SMTP id n5mr978216fab.16.1257674717098; Sun, 08 Nov 2009 02:05:17 -0800 (PST) Reply-To: RQuadling@googlemail.com In-Reply-To: References: <0F.F6.03668.AD206FA4@pb1.pair.com> <10845a340911072344h1187694xf1714dd8b97ac58e@mail.gmail.com> Date: Sun, 8 Nov 2009 10:04:57 +0000 Message-ID: <10845a340911080204q723b3de0rb0eab1e4054a2148@mail.gmail.com> To: jvlad Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Regarding constructions like func()[0] From: rquadling@googlemail.com (Richard Quadling) 2009/11/8 jvlad : >>> >>> >> >> Whilst you are all thinking about this, how about ... >> >> $value = (function(){return $x;})(); >> >> Being able to call an anonymous function inline would certainly be a >> useful mechanism. Allowing calls without creating dummy user land vars >> would be consistent with func()[0]. >> > > > If you care not to waste userland with new names, use namespaces, > that's the way intruduced by php, and it is not javascript after all. > > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > I'm so old school in my coding, I've not got my head around namespaces yet. I'm just old. -- ----- Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 ZOPA : http://uk.zopa.com/member/RQuadling