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 3B8DD1F44D for ; Mon, 22 Apr 2024 21:41:34 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; secure) header.d=ml.ruby-lang.org header.i=@ml.ruby-lang.org header.a=rsa-sha256 header.s=mail header.b=dtT9aKwU; 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=OQGZjvnZ; dkim-atps=neutral Received: from nue.mailmanlists.eu (localhost [127.0.0.1]) by nue.mailmanlists.eu (Postfix) with ESMTP id E927F8444F; Mon, 22 Apr 2024 21:41:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1713822086; bh=bruk9A+Bt/EulNnAyT1MbVeSRnbmj3lqUuMAHWLyElE=; 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=dtT9aKwU/W4a8dhj9/4Vh5pWnTB4qG4bnVhUrZ2K+XhwfalOwHVJh4eqmGKUYxAKG uHKJnbUPcQfX511dNOhgkscpGFC6pQVpfrVA2glGT4f1ujLUA4Ae5iRQyBmrvSLMur IxSAdmtsWBl8iI/IrmyUxXOdk5bbwPtS0AE4B2p4= Received: from s.wrqvtvvn.outbound-mail.sendgrid.net (s.wrqvtvvn.outbound-mail.sendgrid.net [149.72.120.130]) by nue.mailmanlists.eu (Postfix) with ESMTPS id 5AE95843EA for ; Mon, 22 Apr 2024 21:41:21 +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=OQGZjvnZ; dkim-atps=neutral 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=0Z5QXlVGLt7kNahY6kDeFRt2DoCVeRejVZceAfqU3kU=; b=OQGZjvnZjjXepWLtBQ+x32IuQ8FdwDduZUr/vOiDONzsT1dgD7u4kpqIQXROA58wS69a 1qF/B8JCA74frSzLNdZpZhz2lx4b+k3X505kGo97an9wO4SEFJ8+8u2+wLt17LEJg3hmDF b4Pb2GBVxnmwVuD1W32ytdwGSl0Xka5grPhGnebBaBJIKgmpygyT9ZXqM83CDHfI7rZGn3 jk+mDdj37c0YNaCI9uLo8HK6B9atvY6NO/dq+iGbADdJojvmB7bP2f2nfsxRGP/gUMazV7 RrTHzb5exNnuk5kiLnwj6wNtLEMp/HpLi5TKE48w8jS47eWE++APr7XNMFVxo/eA== Received: by filterdrecv-854b845bd5-d477k with SMTP id filterdrecv-854b845bd5-d477k-1-6626D980-4 2024-04-22 21:41:20.091769161 +0000 UTC m=+863511.890033494 Received: from herokuapp.com (unknown) by geopod-ismtpd-9 (SG) with ESMTP id YkBM9T2ZQiauwV0CGViPjA for ; Mon, 22 Apr 2024 21:41:20.038 +0000 (UTC) Date: Mon, 22 Apr 2024 21:41:20 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 20444 X-Redmine-Issue-Author: esad X-Redmine-Issue-Priority: Normal X-Redmine-Sender: esad 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: 94242 X-SG-EID: =?us-ascii?Q?u001=2ElMtbztYvHZZZvM524qPN0nU7mdj2wbw4OeavLHeQrlG0ZCx2PWmBPGCch?= =?us-ascii?Q?4=2FXCz8t31i+kRsvxV75BGyB0WhcpS3Ai1n9eaWt?= =?us-ascii?Q?fDP=2Fjb=2FX=2FOqtuVOVggfZ5kMziMhbas3TvN7RIo6?= =?us-ascii?Q?iocSTYId5XPF6wj0YqCxR9pA+3g3IOJrSgq4o1T?= =?us-ascii?Q?zFt+pdJBcaYWFSepQMMVVepqKJ1BmQycHbDnLH7?= =?us-ascii?Q?9uF7mW2IOpEht04FUbZoal+uRf=2F+b5Oa6TRtUpA?= =?us-ascii?Q?xaZkrvyRjygu8KckavoHTcjTqw=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: SG557N5VVIZO3IW6PM7CMC52EDDAZM3I X-Message-ID-Hash: SG557N5VVIZO3IW6PM7CMC52EDDAZM3I 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.3 Precedence: list Reply-To: Ruby developers Subject: [ruby-core:117646] [Ruby master Bug#20444] Kernel#loop: returning the "result" value of StopIteration doesn't work when raised directly List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "esad (Esad Hajdarevic) via ruby-core" Cc: "esad (Esad Hajdarevic)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #20444 has been reported by esad (Esad Hajdarevic). ---------------------------------------- Bug #20444: Kernel#loop: returning the "result" value of StopIteration doesn't work when raised directly https://bugs.ruby-lang.org/issues/20444 * Author: esad (Esad Hajdarevic) * Status: Open * ruby -v: ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [arm64-darwin20] * Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- There was a https://bugs.ruby-lang.org/issues/11498 a while ago which was merged in, but I was surprised to find out that raising `StopIteration` in a loop like `loop { raise StopIteration.new(3) }` returns nil and not 3. -- 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/postorius/lists/ruby-core.ml.ruby-lang.org/