Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117839 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 82690 invoked from network); 30 May 2022 19:45:14 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 30 May 2022 19:45:14 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B09D6180211 for ; Mon, 30 May 2022 14:29:03 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS29169 217.70.176.0/20 X-Spam-Virus: No X-Envelope-From: Received: from relay11.mail.gandi.net (relay11.mail.gandi.net [217.70.178.231]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 30 May 2022 14:29:02 -0700 (PDT) Received: (Authenticated sender: come@chilliet.eu) by mail.gandi.net (Postfix) with ESMTPSA id D16DF100002 for ; Mon, 30 May 2022 21:29:00 +0000 (UTC) Date: Mon, 30 May 2022 23:28:59 +0200 To: PHP internals User-Agent: K-9 Mail for Android In-Reply-To: References: Message-ID: <6F510BE1-A533-4CD8-9998-810ECA849A7F@chilliet.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: =?US-ASCII?Q?Re=3A_=5BPHP-DEV=5D_=5BRFC=5D=5BUnder_discussion=5D?= =?US-ASCII?Q?_Fetch_properties_in_const_expressions?= From: come@chilliet.eu (=?ISO-8859-1?Q?C=F4me_Chilliet?=) Le 28 mai 2022 11:44:13 GMT+02:00, Ilija Tovilo a =C3=A9crit=C2=A0: >Hi everyone > >I'd like to start a discussion on a simple RFC to allow fetching >properties in constant expressions=2E >https://wiki=2Ephp=2Enet/rfc/fetch_property_in_const_expressions > >The RFC proposes adding support for fetching properties in constant >expressions using the -> operator=2E I'm looking forward to your >feedback=2E It is not clear to me why this allows using -> on enums but not on other o= bjects=2E Can you clarify why the following is not allowed: var; static $staticobj =3D new Thing(); function f($p =3D self::$staticobj->var) {} }