Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52499 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89633 invoked from network); 22 May 2011 08:16:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 May 2011 08:16:43 -0000 Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.215.170 mail-ey0-f170.google.com Received: from [209.85.215.170] ([209.85.215.170:50670] helo=mail-ey0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E5/53-01076-766C8DD4 for ; Sun, 22 May 2011 04:16:39 -0400 Received: by eyf5 with SMTP id 5so1578015eyf.29 for ; Sun, 22 May 2011 01:16:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=10MADRVyF0F3IAosYz13PrtzHUhHMNMbFFbNqQgbv5s=; b=p/bckQyPHu2MrJtV/fCr47+Fe6dX+vzuPIXpdyhhlzeoSx7yfkrBouvmPr2Iw0AAEZ Pl5PNP3DwvT28cYCmnAG4Qx+X//su8W1C6H0BB6/C8Pid77zJ8yvdlwnOcy6QG5X4wER HmMggkBb1TQnD1be0zrUlYvw+6jw97aluVLcc= 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=H6+GAf9zcwebN8pR7az3wwgZutoTsnNf49+QbaAyJ/JI6fvllqti3nZjFpUEOKg1jO tbYppeGTQufHXjgXTUrs1t4zsfgjfQrxDEgKwdUWXyPrEYOjLeDzWgZyrpO6qpyHOrQr 0WsYRuIol9i2XFYjNghqZUvfhdbj9Q89SU0MQ= MIME-Version: 1.0 Received: by 10.14.188.135 with SMTP id a7mr392957een.180.1306052194800; Sun, 22 May 2011 01:16:34 -0700 (PDT) Sender: tyra3l@gmail.com Received: by 10.14.37.13 with HTTP; Sun, 22 May 2011 01:16:34 -0700 (PDT) In-Reply-To: References: Date: Sun, 22 May 2011 10:16:34 +0200 X-Google-Sender-Auth: cS8BVMkHViJlbrVplMvP67J5qxM Message-ID: To: dukeofgaming Cc: PHP internals Content-Type: multipart/alternative; boundary=bcaec52be62721150704a3d8f926 Subject: Re: [PHP-DEV] Constructor object instance dereferentiation From: info@tyrael.hu (Ferenc Kovacs) --bcaec52be62721150704a3d8f926 Content-Type: text/plain; charset=UTF-8 On Sun, May 22, 2011 at 6:18 AM, dukeofgaming wrote: > Hi, > > I was wondering if object dereferentiation after constructor call is > something that has been discussed already. This is, being able to do > something like: > > new MyClass()->setSomething(); > > Instead of: > > $var = new MyClass(); > $var->setSomething(); > > Regards, > > David Vega > hi. it was already discussion, Felipe created an RFC and a patch, the responses was all positive, so I think if nobody changed their mind, we could move this from Under Discussion to Accepted/Implemented as I said before, it would be in good pair with the already implemented array dereferencing (https://wiki.php.net/rfc/functionarraydereferencing) http://marc.info/?l=php-internals&m=129080024516125&w=2 https://wiki.php.net/rfc/instance-method-call Tyrael --bcaec52be62721150704a3d8f926--