Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:115280 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 91795 invoked from network); 3 Jul 2021 11:39:59 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 3 Jul 2021 11:39:59 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id E23B31804F4 for ; Sat, 3 Jul 2021 05:00:58 -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=-0.7 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-yb1-f178.google.com (mail-yb1-f178.google.com [209.85.219.178]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sat, 3 Jul 2021 05:00:58 -0700 (PDT) Received: by mail-yb1-f178.google.com with SMTP id r135so20956702ybc.0 for ; Sat, 03 Jul 2021 05:00:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :content-transfer-encoding; bh=cgTgJrQ9CzFE6efG2tbmVHpDZ7Q1NK1nfTL2MzxOvds=; b=BX+Mf4qfUA17OS6eO6pvpyNSd9PCfHY4w39DIJKctJFN86MYq60qfh8Mm2rJ9APWdH vYcpJNQupre/UAmIV4olLBmfcZd+51MPREbRVl/KyVzOnf8LMonpYYschoQKdxo/te3S wLQWmuwNLrojXE2bbx93XcxEyLKRlAjIBIq/QZ8si9ubLkm4uol7+lNj3Yg0uIcvpZcz 11KU4SA2YG/myiMlCFVBOjzjSOt0NYaoWBhkQL5Ujz8dgoHa+j34xCV7C9TYgQlZf2t2 yLZRrrXrxD/EDkTF2iendD/ysKd0OXNd1KGMgULK6lA/jLitcGJYyPWW7ZtkOY40MFDZ eZKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-transfer-encoding; bh=cgTgJrQ9CzFE6efG2tbmVHpDZ7Q1NK1nfTL2MzxOvds=; b=Cc0Pybn117DIcmkrH+BkobiI+rxQ20IR4HGV42pCGCEvBtDEPxKh8eNqjjBMQC7UjM q6A44XM9+jiWdrGTbsO2iTiEOtsU/wBLFPCjCW30j+NrJmSSSvC4dQY//CahphUo33yW eqGMHcfhz69hRyc0P51hlFZQiN6/zrHoUTyeEZ+V4Ms3Cz9J4Dgj05b3iEiSQzUDHFhR S7amlqgqqb68XDeqTgqXla6U1bG+Egj1RJU2desRdLTTU48+GMv1AhCq2kwEdq0tJifd d8tRuLE68B/rnIr19sf3F9R5PrEmXWov5oRqPVIqgRzPGENZ66IlwhYuMPZlkPxkapbW Sdlw== X-Gm-Message-State: AOAM532CaZ7g0rKtnf/zcqxQU2ees5rBvSO2OyY2u6HA3w0Ypx/lyB9j Livtk64zkuzyP0dQpxAwMoMH+WkRaJQllnOyX2Qld/h4 X-Google-Smtp-Source: ABdhPJzYx3jTBB0ZX8N63lEsBwO6hpKl8ivK36f8ndQ+ZHB/DOny8DYXsMX+J5abgxH+IJnmEVDBQw4K6YwAxsS9oR0= X-Received: by 2002:a25:3482:: with SMTP id b124mr5130006yba.297.1625313657458; Sat, 03 Jul 2021 05:00:57 -0700 (PDT) MIME-Version: 1.0 References: <03e401d76f7a$1417b430$3c471c90$@jhdxr.com> In-Reply-To: <03e401d76f7a$1417b430$3c471c90$@jhdxr.com> Date: Sat, 3 Jul 2021 14:00:46 +0200 Message-ID: To: PHP internals Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [VOTE] Readonly properties From: tovilo.ilija@gmail.com (Ilija Tovilo) Hi > Thanks for the RFC. A quick question, is it allowed to assign to a readon= ly property multiple times within the construction method? Sorry for it if = someone has asked this before, because actually I didn't go through the who= le thread, only did a quick search on it. Thanks. No, assignment is exclusively allowed under two conditions: 1. The property is declared in the same class 2. The property is uninitialized This means you won't be able to change a property once you've written a value to it, even in the constructor. Ilija