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=-1.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS autolearn=ham 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) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 059731F508 for ; Sat, 1 Feb 2025 13:46:21 +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=ADCz2//E; 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=sgV529Fe; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1738417548; bh=XSXLSQoMbNucSLqfDs6HJX9U8pT3Lo/FNyFwgitRaiw=; 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=ADCz2//Eigsgu/pznpsOTFtWOT22MoWXmxJ5UkkLB7Ztu95s3OToV6C00pOa+lNso ri2kEWFyonYpFCQGjOerW9d2NBtUefLMuJw9B3G4El2S2wXR+xtQLohKy49cBRmY+V 5tU/isbeCgT2lxprdnqlUIXyd8Ms+CWS6D4eQOKM= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id C5D1146880 for ; Sat, 1 Feb 2025 13:45:48 +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=sgV529Fe; dkim-atps=neutral Received: from s.wfbtzhsw.outbound-mail.sendgrid.net (s.wfbtzhsw.outbound-mail.sendgrid.net [159.183.224.105]) by nue.mailmanlists.eu (Postfix) with ESMTPS id 2DA5B452F3 for ; Sat, 1 Feb 2025 13:45:43 +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=YpKEcQG0eOes3GW958bUXQAfpafDz2nbDQO9XiZCAn0=; b=sgV529FeTPICdY7LaTtN1GkbmU26kSPagLNPmk6a0ucei4rTPxxiV8H7elKtctjln3jm tNhJBq6rE6liKhQ/WeDLgzYG3Gm7FI3vTtqy2daRJAAQ+cNeK4PG1GYdDJ20xs+Chs7IAI +gUckFXvvxRSPaHVb9g1p/DImoPG8RrvC3MLjnpSyviQkIwzVdzLvZ7JzuU5NEvh24hbS9 gCWB0WeZz1avu7OoXqxJz9gAfbQOZoyHjrUc8fzxiojdvwKO1EnG19ZCryFGrPyAPUU5wK 5HnqY9kgNovrSI1nqY5crmT7WxdistwCK7IeLABPcHFZ62xt4K8jSreUmuI46fAA== Received: by recvd-5c8ccdbd88-r7f4m with SMTP id recvd-5c8ccdbd88-r7f4m-1-679E2586-6 2025-02-01 13:45:42.185235465 +0000 UTC m=+6798256.539752052 Received: from herokuapp.com (unknown) by geopod-ismtpd-28 (SG) with ESMTP id HWqRKmqhT8qb-smlqlA4QQ for ; Sat, 01 Feb 2025 13:45:42.144 +0000 (UTC) Date: Sat, 01 Feb 2025 13:45:42 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 21103 X-Redmine-Issue-Author: tenderlovemaking X-Redmine-Issue-Assignee: tenderlovemaking X-Redmine-Issue-Priority: Normal X-Redmine-Sender: nobu 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: 97569 X-SG-EID: =?us-ascii?Q?u001=2E5PtzXJ23KrYzgM1nrOIr+EQ222PyrDaWSg0Er8CZ8tP86xyXmBM81zBKD?= =?us-ascii?Q?HreavdFYMbHjxXOR6UPMkt=2Fu9CyBIp6y52n8D2y?= =?us-ascii?Q?qA9zqurrgUd2AmaCdnrv72FkX4IlBe+jUwW5N6A?= =?us-ascii?Q?crfqZUf2MBlOjRKGXUE3S4DoICJ48MVgIpYHEMN?= =?us-ascii?Q?LnGPYM1KoOWIT7ob75AEdeT1WsPSoiNoVpTxsXl?= =?us-ascii?Q?lNKg8ZTdX0EK7n2W9FQBGNjoTiNyCdQEY9PDI9J?= =?us-ascii?Q?kGF9KIlxlmTy7SwytvbLka=2FSSw=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: ZG5G2C2XGU27AVD5RQ3OKQSP75HGY4UV X-Message-ID-Hash: ZG5G2C2XGU27AVD5RQ3OKQSP75HGY4UV 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:120853] [Ruby master Bug#21103] Binding problem with delegate methods List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "nobu (Nobuyoshi Nakada) via ruby-core" Cc: "nobu (Nobuyoshi Nakada)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #21103 has been updated by nobu (Nobuyoshi Nakada). https://github.com/ruby/ruby/pull/12686 ---------------------------------------- Bug #21103: Binding problem with delegate methods https://bugs.ruby-lang.org/issues/21103#change-111729 * Author: tenderlovemaking (Aaron Patterson) * Status: Open * Assignee: tenderlovemaking (Aaron Patterson) * Backport: 3.1: DONTNEED, 3.2: DONTNEED, 3.3: DONTNEED, 3.4: REQUIRED ---------------------------------------- ```ruby def foo(...) a = 123 binding.local_variable_get(:a) end p foo([]) ``` Expected output is `123`, actual output is some number. I think there is an off-by-one error in bindings created from delegate frames. -- 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/