Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49118 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83158 invoked from network); 23 Jul 2010 01:00:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jul 2010 01:00:12 -0000 Authentication-Results: pb1.pair.com header.from=ionut.g.stan@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=ionut.g.stan@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: ionut.g.stan@gmail.com X-Host-Fingerprint: 209.85.214.42 mail-bw0-f42.google.com Received: from [209.85.214.42] ([209.85.214.42:53042] helo=mail-bw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8A/81-08584-A99E84C4 for ; Thu, 22 Jul 2010 21:00:11 -0400 Received: by bwz11 with SMTP id 11so1457871bwz.29 for ; Thu, 22 Jul 2010 18:00:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=5J5Kn3AK3VKt+2Mj+LCM6BFFJx56Ho5hUTXaHMRMuNs=; b=wbhzHHgjZLGW2aGQsqTiWl6HubGyFI7xR6qhCxK7MudlpjyFQWVoaF17/22R/IcgPL 1Y8OCN9GJxrsWVFtUFbDaJCCaGbrfb5wnT3+tWV9r+s2Ip/J539fdmGsBMihvkJZA1Gv 35N2RbCvn8AYTiej+fnsxL1u9TOb5agmEdRE0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:cc:subject:references :in-reply-to:content-type:content-transfer-encoding; b=Af8SLGUswzoGyntX9zhJYxQWaFx1GN5EJicLpXbvwMNbYZ2d4JpP3tomobOQabNNbB XuNWcw5riZGjPSizJ1d2lBSp9VAFUm/f3nGhlQEerSro1QfO2TLCbDjowyZvwMUr2e4j gf8xtYgT10U8FC8o1fzRyu31NrHytKVdveLR8= Received: by 10.204.46.73 with SMTP id i9mr1890735bkf.156.1279846800750; Thu, 22 Jul 2010 18:00:00 -0700 (PDT) Received: from l.local ([89.36.11.205]) by mx.google.com with ESMTPS id o20sm30732368bkw.15.2010.07.22.18.00.00 (version=SSLv3 cipher=RC4-MD5); Thu, 22 Jul 2010 18:00:00 -0700 (PDT) Message-ID: <4C48EAF5.6000903@gmail.com> Date: Fri, 23 Jul 2010 04:05:57 +0300 User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.7) Gecko/20100713 Thunderbird/3.1.1 MIME-Version: 1.0 CC: internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] Remove variable function and method calls From: ionut.g.stan@gmail.com ("Ionut G. Stan") On 23/Jul/10 1:54 AM, Karoly Negyesi wrote: > Hi, > > Given that call_user_func exists I would recommend to remove $foo() > from PHP Next. > > Observe the "logic" in the following examples: > > $foo(); > new $foo(); > classname::$foo; > classname::$foo(); How about: $lambda = function () {}; $lambda(); What should happen in this case? -- IonuČ› G. Stan | http://igstan.ro