Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:57058 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55713 invoked from network); 23 Dec 2011 13:47:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Dec 2011 13:47:54 -0000 Authentication-Results: pb1.pair.com header.from=dsnytkine@Ultralogistics.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=dsnytkine@Ultralogistics.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain Ultralogistics.com from 64.197.110.172 cause and error) X-PHP-List-Original-Sender: dsnytkine@Ultralogistics.com X-Host-Fingerprint: 64.197.110.172 thrud.alliantinternet.com Received: from [64.197.110.172] ([64.197.110.172:40275] helo=thrud.alliantinternet.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 87/A1-40830-88684FE4 for ; Fri, 23 Dec 2011 08:47:53 -0500 Received: by thrud.alliantinternet.com (Postfix, from userid 1001) id 05B4C17430D; Fri, 23 Dec 2011 08:47:50 -0500 (EST) To: =?UTF-8?Q?'=C3=81ngel_Gonz=C3=A1lez'?= , "'PHP Developers Mailing List'" References: <2095305E-D4E3-4D7E-8218-32EE99688E0C@GMAIL.COM> <2C90FB94-38C4-4270-8C6A-B89304BA8ED8@gmail.com> <159A7CA2-8561-40DA-9434-CAAE12304DDB@gmail.com> <4EF3B56A.4040809@gmail.com> <-2451498990672032588@unknownmsgid> <4EF3C99F.4010300@gmail.com> <4EF3CEFA.4000301@alliantinternet.com> In-Reply-To: <4EF3CEFA.4000301@alliantinternet.com> Date: Fri, 23 Dec 2011 08:47:48 -0500 Message-ID: <008801ccc179$74ef1190$5ecd34b0$@alliantinternet.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thread-Index: AczBC57NOmc5fymrT7OFzOVqNJEmTwAbc4dw Content-Language: en-us Subject: RE: [PHP-DEV] Return Type Hinting for Methods RFC From: dsnytkine@Ultralogistics.com ("Dmitri Snytkine") Is this how it's done in Scala? Dmitri Snytkine Web Developer Ultra Logistics, Inc. Phone: (888) 220-4640 x 2097 Fax: (888) 795-6642 E-Mail: dsnytkine@ultralogistics.com Web: www.ultralogistics.com "A Top 100 Logistics I.T. Provider in 2011" -----Original Message----- From: =C3=81ngel Gonz=C3=A1lez [mailto:keisial@gmail.com]=20 Sent: Thursday, December 22, 2011 7:45 PM To: PHP Developers Mailing List Subject: Re: [PHP-DEV] Return Type Hinting for Methods RFC > (I'm unsure about the T_DOUBLE_ARROW, although for parsing, I feel = there > should be some token there > before the class name, though I'm unconvinced on which) What about this? function foo (Class1 $a, Class2 $b) return Class3 { /* Do something */ return new Class3($a, $b); } --=20 PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php