Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48689 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50745 invoked from network); 8 Jun 2010 14:48:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Jun 2010 14:48:37 -0000 Authentication-Results: pb1.pair.com smtp.mail=Dennis@born05.nl; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=dennis@born05.nl; sender-id=unknown Received-SPF: error (pb1.pair.com: domain born05.nl from 212.54.34.166 cause and error) X-PHP-List-Original-Sender: Dennis@born05.nl X-Host-Fingerprint: 212.54.34.166 smtpq3.gn.mail.iss.as9143.net Received: from [212.54.34.166] ([212.54.34.166:46057] helo=smtpq3.gn.mail.iss.as9143.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B8/FD-13782-1485E0C4 for ; Tue, 08 Jun 2010 10:48:35 -0400 Received: from [212.54.34.139] (helo=smtp8.gn.mail.iss.as9143.net) by smtpq3.gn.mail.iss.as9143.net with esmtp (Exim 4.69) (envelope-from ) id 1OM06R-0005wu-1z for internals@lists.php.net; Tue, 08 Jun 2010 16:48:31 +0200 Received: from 53531983.cable.casema.nl ([83.83.25.131] helo=born05.nl) by smtp8.gn.mail.iss.as9143.net with esmtp (Exim 4.69) (envelope-from ) id 1OM06M-00036d-Cs for internals@lists.php.net; Tue, 08 Jun 2010 16:48:26 +0200 Received: from dennissPC ([192.168.2.179]) by born05.nl with Microsoft SMTPSVC(6.0.3790.4675); Tue, 8 Jun 2010 16:48:25 +0200 To: References: <2C70277E-0442-49B8-AD0B-E9F12ED7B42C@oettinger.dk> <1275993681.2243.10.camel@guybrush> <4C0E4DCC.6040606@toolpark.com> In-Reply-To: <4C0E4DCC.6040606@toolpark.com> Date: Tue, 8 Jun 2010 16:48:26 +0200 Message-ID: <004901cb0719$a6bd45f0$f437d1d0$@nl> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcsHF+ImkHShmxW5QiOZi3Nn0l8oyAAAbrdw Content-Language: nl X-OriginalArrivalTime: 08 Jun 2010 14:48:25.0959 (UTC) FILETIME=[A6865770:01CB0719] X-ZiggoSMTP-MailScanner-Information: Please contact the ISP for more information X-ZiggoSMTP-MailScanner-ID: 1OM06M-00036d-Cs X-ZiggoSMTP-MailScanner: Found to be clean X-ZiggoSMTP-MailScanner-SpamCheck: geen spam, SpamAssassin (niet cached, score=0.101, vereist 5, BAYES_50 0.00, RDNS_NONE 0.10) X-ZiggoSMTP-MailScanner-From: dennis@born05.nl X-Spam-Status: No Subject: RE: [PHP-DEV] [RFC] Array Dereferencing From: dennis@born05.nl ("Dennis Haarbrink") > -----Oorspronkelijk bericht----- > Van: Lars Schultz [mailto:lars.schultz@toolpark.com] > Verzonden: dinsdag 8 juni 2010 16:04 > Aan: internals@lists.php.net > Onderwerp: Re: [PHP-DEV] [RFC] Array Dereferencing > > >> $result = new ResultMaker()->getIt(); > > I know that this is not much of an argument, but it works the same way > in Javascript too, which is very convenient. The intended behaviour is > obvious...even though it could be (mis-)interpreted by php. > > Lars > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php I agree, this is obviously the intended behaviour. As long as the door is still open to do: $result = new (ResultMaker()->getIt()); To create an object of the class returned by the getIt() method. -Dennis