Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78616 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74554 invoked from network); 4 Nov 2014 08:40:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Nov 2014 08:40:30 -0000 Authentication-Results: pb1.pair.com header.from=ivan.enderlin@hoa-project.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ivan.enderlin@hoa-project.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain hoa-project.net designates 212.85.154.38 as permitted sender) X-PHP-List-Original-Sender: ivan.enderlin@hoa-project.net X-Host-Fingerprint: 212.85.154.38 unknown Received: from [212.85.154.38] ([212.85.154.38:40845] helo=mail.hoa-project.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DE/63-24107-DF098545 for ; Tue, 04 Nov 2014 03:40:30 -0500 Received: from MacBook-Air-de-Hend.local (206-226.4-85.cust.bluewin.ch [85.4.226.206]) by mail.hoa-project.net (Postfix) with ESMTPSA id B23B720522 for ; Tue, 4 Nov 2014 09:40:26 +0100 (CET) Message-ID: <545890FC.8090902@hoa-project.net> Date: Tue, 04 Nov 2014 09:40:28 +0100 Reply-To: ivan.enderlin@hoa-project.net User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: internals@lists.php.net References: <54588915.3010601@hoa-project.net> <54589055.7060105@gmx.de> In-Reply-To: <54589055.7060105@gmx.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC][Vote] Return Types From: ivan.enderlin@hoa-project.net ("Ivan Enderlin @ Hoa") Le 04/11/2014 09:37, Christoph Becker a =C3=A9crit : > Ivan Enderlin @ Hoa wrote: > >> Excellent RFC, thank you. However, there is no mention about using >> `static`, `self` or `parent` as a type (it is possible for an argument= ). >> Something like: >> ```php >> class Singleton { >> >> public function getInstance ( $x, $y): static { =E2=80=A6 } >> } >> ``` >> Maybe I miss it in the discussion? >> Thoughts? > The possible usage of self and parent is already documented: > = =2E > > Regarding static, see . Thanks :-). --=20 Ivan Enderlin Developer of Hoa http://hoa-project.net/ PhD. at DISC/Femto-ST (Vesontio) and INRIA (Cassis) http://disc.univ-fcomte.fr/ and http://www.inria.fr/ Member of HTML and WebApps Working Group of W3C http://w3.org/