Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45975 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92411 invoked from network); 8 Nov 2009 09:52:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Nov 2009 09:52:10 -0000 X-Host-Fingerprint: 95.31.13.88 xdmitri2.static.corbina.ru Received: from [95.31.13.88] ([95.31.13.88:11213] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BD/E0-21516-9C496FA4 for ; Sun, 08 Nov 2009 04:52:10 -0500 Message-ID: To: internals@lists.php.net References: <0F.F6.03668.AD206FA4@pb1.pair.com> <10845a340911072344h1187694xf1714dd8b97ac58e@mail.gmail.com> Date: Sun, 8 Nov 2009 12:52:04 +0300 Lines: 17 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5843 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-RFC2646: Format=Flowed; Original X-Posted-By: 95.31.13.88 Subject: Re: [PHP-DEV] Regarding constructions like func()[0] From: dmda@yandex.ru ("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.