From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on starla X-Spam-Level: X-Spam-Status: No, score=0.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET,SPF_HELO_PASS, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 Received: from nue.mailmanlists.eu (nue.mailmanlists.eu [94.130.110.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 833311F4CC for ; Wed, 8 Jan 2025 03:12:39 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; unprotected) header.d=ml.ruby-lang.org header.i=@ml.ruby-lang.org header.a=rsa-sha256 header.s=mail header.b=TAla/7kD; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=K8SrMH7p; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1736305927; bh=PSmny+LBeD2adYkLUEESlp4OJg6s1sImWLgRh4tzAck=; h=Date:References:To:Reply-To:Subject:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From:Cc:From; b=TAla/7kDfJEk/C43s9zsYEGmaFM9N4rerbwHdBEwnXzirYLtBqudls/El3poDna6u PqxPiUcF6U028tSzXP0pckXqOq4nYGOvRI2rCqD0NkReztFez7D4rnEZWrZYwhgT+7 /Hs+fsCdQqstG6AIOs8H2d2ztCJOT0Xr0NlQUJJY= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 3982C466CF for ; Wed, 8 Jan 2025 03:12:07 +0000 (UTC) Authentication-Results: nue.mailmanlists.eu; dkim=pass (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=K8SrMH7p; dkim-atps=neutral Received: from s.wrqvtbkv.outbound-mail.sendgrid.net (s.wrqvtbkv.outbound-mail.sendgrid.net [149.72.123.24]) by nue.mailmanlists.eu (Postfix) with ESMTPS id D46CB466B5 for ; Wed, 8 Jan 2025 03:12:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ruby-lang.org; h=from:references:subject:mime-version:content-type: content-transfer-encoding:list-id:to:cc:content-type:from:subject:to; s=s1; bh=GKTq42o7RK8Pd3RXD+WT61E2K81o3/SfAfL5MbLkxQA=; b=K8SrMH7pASPjPL5yiRusdJ2PDkgF7z1T2rNjd66h0u/hdfSxlBSFUyOAFmV9EHDjhB9D hjhg9OWpkD3BfHZjajf/XFURpV4JGJ46HekSHQ8zGoLNrBQEp8ttCxx/GVvwXwWsdR80u+ eyyZw84aW/fDUztbBlLa/q8ToG6OB/6x4lak6uALnXHcHOg9ynd3HXMHg0BOQIG47UYNGq UEZA8GbsO8YwdVMZztTUbuvkBbele8P8Hg8ixj4t59CqU1sEMaDSsdop3PJGwiasQqX+KR +HdxwmZgDXMwjjdtvcuq3ESrvUv9j1vCXMsPeciUmu77BytrdwYQLJJr+3B1Gb0g== Received: by recvd-5f54b5d587-djvzq with SMTP id recvd-5f54b5d587-djvzq-1-677DECFF-9 2025-01-08 03:11:59.880185675 +0000 UTC m=+4686639.802600687 Received: from herokuapp.com (unknown) by geopod-ismtpd-27 (SG) with ESMTP id glCTga3HTzq4CN9CbgcNFQ for ; Wed, 08 Jan 2025 03:11:59.772 +0000 (UTC) Date: Wed, 08 Jan 2025 03:11:59 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 21016 X-Redmine-Issue-Author: nobu X-Redmine-Issue-Priority: Normal X-Redmine-Sender: kddnewton X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-Redmine-MailingListIntegration-Message-Ids: 97225 X-SG-EID: =?us-ascii?Q?u001=2E41nWPij=2FD1kdGmpgWeHScbb9X8tZePZrQQx3bl8Vy2odBuMhLMhId2kIq?= =?us-ascii?Q?I4MmMJ43lNHfKPNNds=2Fb3JsTYpYoWyQb3+sPV4d?= =?us-ascii?Q?vscaSKwkBzV04Tu2n0Lj3UN9mTYuLXyJajpBT=2FQ?= =?us-ascii?Q?z904vpBx4gLef4tErxdB7+30=2F1HyRi0Yv0MPB=2Fc?= =?us-ascii?Q?uLC2rMW=2FYBrT70JUxX5iT7yBSyBCyxEHJ0UcNoS?= =?us-ascii?Q?iijVpyVin6heTn94WnWjqnLA03BTMcEtEc2D1qn?= =?us-ascii?Q?hi0AjI1qSd1gFPQx6tiWtz7gBw=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: SFI2BIBLFPSTFLL455TAOTD67UVYTE74 X-Message-ID-Hash: SFI2BIBLFPSTFLL455TAOTD67UVYTE74 X-MailFrom: bounces+313651-b711-ruby-core=ml.ruby-lang.org@em5188.ruby-lang.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list Reply-To: Ruby developers Subject: [ruby-core:120549] [Ruby master Bug#21016] What should massign with `shareable_constant_value: experimental_everything` freeze? List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "kddnewton (Kevin Newton) via ruby-core" Cc: "kddnewton (Kevin Newton)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #21016 has been updated by kddnewton (Kevin Newton). Yeah we found this when we were building prism (https://bugs.ruby-lang.org/issues/20340). I don't know what the expected behavior here is. ---------------------------------------- Bug #21016: What should massign with `shareable_constant_value: experimental_everything` freeze? https://bugs.ruby-lang.org/issues/21016#change-111354 * Author: nobu (Nobuyoshi Nakada) * Status: Open * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN ---------------------------------------- Derived from #21011. Even with prism: ```ruby # shareable_constant_value: experimental_everything A, = "" p A.frozen? #=> false ``` This `A` should be frozen? Furthermore: ```ruby # shareable_constant_value: experimental_everything A, a = "A", "a" p A.frozen? #=> false p a.frozen? #=> false ``` Should only `A` be frozen but not `a`? Or massign including a constant can freeze everything? -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/