Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117950 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 88252 invoked from network); 15 Jun 2022 02:56:58 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 15 Jun 2022 02:56:58 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id D3C14180384 for ; Tue, 14 Jun 2022 21:44:37 -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=1.3 required=5.0 tests=BAYES_50, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 14 Jun 2022 21:44:37 -0700 (PDT) Received: by mail-ed1-f43.google.com with SMTP id c2so14379094edf.5 for ; Tue, 14 Jun 2022 21:44:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=mAcgzZl5BvTRJF5DZPwApygL3espNaqFmxjV6WxCV8U=; b=FRBryQdjfeScgkU9/Kt7dpxdfVaL+/SiIUhdCbR/tK09efBXV8b0nGfnIpBGW2lOvz rfQ7dc8ffM9Ntg6hMXrX5FxsdV2ilBrlpXYQxoA4wJmrlBRX8+F4Sm5ToBmKnnnGegLH 8FYvNw2nWJ2HGhmsz4ZZ1n0alsWD62aE8kVvJakuWpOQYbQuuuUQlCEzGFCAZbJm/Em7 yEya+FQ2VukPumfnuCsu0X0Jv7oEsIY6GxxN8VaKi3COHocdtvUMWWDLEHImSxE3ZeLb G9OTVG5E2HMCA6mF4UGmPninlAfr9MAuGqOk77sqoQnqCtZxPfuYBeiMHWTnOEbKeiZ8 7JXQ== X-Gm-Message-State: AJIora+qYayhA8+8cSJbtLNfFVhHLinLOecBHPSW1NjgONpBvgx41FUf Y76N2iBMfk0DodDMms7tH0j5oLmrwPlhOg== X-Google-Smtp-Source: AGRyM1vkvy7GVhtyyZkVrF9C6fDy5GynKHnvyI/Ft1JI3M7iyub3zCp0j+zAEpDvsGAQ16gysG5fVA== X-Received: by 2002:a05:6402:3807:b0:435:20fb:318d with SMTP id es7-20020a056402380700b0043520fb318dmr926330edb.272.1655268275857; Tue, 14 Jun 2022 21:44:35 -0700 (PDT) Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com. [209.85.128.47]) by smtp.gmail.com with ESMTPSA id vp12-20020a17090712cc00b006feec47dadfsm5785786ejb.156.2022.06.14.21.44.35 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 14 Jun 2022 21:44:35 -0700 (PDT) Received: by mail-wm1-f47.google.com with SMTP id m125-20020a1ca383000000b0039c63fe5f64so468845wme.0 for ; Tue, 14 Jun 2022 21:44:35 -0700 (PDT) X-Received: by 2002:a05:600c:4f96:b0:39c:951e:66b7 with SMTP id n22-20020a05600c4f9600b0039c951e66b7mr7847074wmq.84.1655268275298; Tue, 14 Jun 2022 21:44:35 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 15 Jun 2022 13:44:24 +0900 X-Gmail-Original-Message-ID: Message-ID: To: Ilija Tovilo Cc: PHP internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [RFC][Under discussion] Fetch properties in const expressions From: sji@sj-i.dev (shinji igarashi) Hello! Just a question. Would this also be allowed? https://3v4l.org/RGdIA i; const ClassConstantViaPropertyFetching2 =3D B::ClassConstant->i; } Thanks! -- Shinji Igarashi 2022=E5=B9=B45=E6=9C=8828=E6=97=A5(=E5=9C=9F) 18:44 Ilija Tovilo : > > Hi everyone > > I'd like to start a discussion on a simple RFC to allow fetching > properties in constant expressions. > https://wiki.php.net/rfc/fetch_property_in_const_expressions > > The RFC proposes adding support for fetching properties in constant > expressions using the -> operator. I'm looking forward to your > feedback. > > Regards, > Ilija > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php >