Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:50613 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93130 invoked from network); 26 Nov 2010 23:48:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Nov 2010 23:48:56 -0000 Authentication-Results: pb1.pair.com header.from=kalle.php@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=kalle.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: kalle.php@gmail.com X-Host-Fingerprint: 209.85.212.42 mail-vw0-f42.google.com Received: from [209.85.212.42] ([209.85.212.42:48777] helo=mail-vw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 23/71-15391-86740FC4 for ; Fri, 26 Nov 2010 18:48:56 -0500 Received: by vws11 with SMTP id 11so700422vws.29 for ; Fri, 26 Nov 2010 15:48:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=v462OwV/hw+aGIw7nRLdvMNF8Rii1uzJzwHqxKAgYYs=; b=L7azdGOg6KO3Ja37261FoJjsNJeGJD2rJdd++os5Xc94e0eeH6drAr5pIH7iv0o+52 faK4QCkj8rG7xHjdiYl2WR4NhTjADit43NE76WNLO7+IS4cS6XU8TmlRqpe5/bUzcann g136Ep4rVClygvBYJyRUIDWeLxgBqwBS6MXm4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=N5uPEqFAfFMMAgc0yCFnyvuhMlQWgQGtct4I4h+zufCc0yvVrc8VQfsADlMh5qu3ep aFantTX4wtm8jt3ilYweVZ+Ra8yKCVyvQjQyBRIvK6RiWo55GMl7bA2L5i9hEYCepVb+ F40s3kg389aPN8dBhbo6+JMagX4il/rMEAOXE= MIME-Version: 1.0 Received: by 10.220.128.86 with SMTP id j22mr674990vcs.140.1290815333106; Fri, 26 Nov 2010 15:48:53 -0800 (PST) Sender: kalle.php@gmail.com Received: by 10.220.185.69 with HTTP; Fri, 26 Nov 2010 15:48:53 -0800 (PST) In-Reply-To: References: Date: Sat, 27 Nov 2010 00:48:53 +0100 X-Google-Sender-Auth: hPorTF5GWtgE1AawklP9AcE9X04 Message-ID: To: Felipe Pena Cc: internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] [RFC] new foo()->bar() From: kalle@php.net (Kalle Sommer Nielsen) Hi Felipe 2010/11/26 Felipe Pena : > Other examples which describes the feature at > http://wiki.php.net/rfc/instance-method-call > > Thoughts? huge +1 from me ;-) It might be worth adding function call chaining with dereferencing and instance method call chaning, like $a = function(){ return function(){ echo 'Hello'; }; }; $a()(); -- regards, Kalle Sommer Nielsen kalle@php.net