From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS24940 94.130.0.0/16 X-Spam-Status: No, score=-3.0 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_DNSWL_HI, SPF_HELO_PASS,SPF_PASS,UNPARSEABLE_RELAY shortcircuit=no autolearn=no autolearn_force=no version=3.4.2 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 6D8A91F4C1 for ; Mon, 28 Nov 2022 22:39:22 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.b="ji4/mdVJ"; dkim-atps=neutral Received: from nue.mailmanlists.eu (localhost [127.0.0.1]) by nue.mailmanlists.eu (Postfix) with ESMTP id 7D3067E7A3; Mon, 28 Nov 2022 22:39:09 +0000 (UTC) Authentication-Results: nue.mailmanlists.eu; 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=ji4/mdVJ; dkim-atps=neutral Received: from xtrwkhkc.outbound-mail.sendgrid.net (xtrwkhkc.outbound-mail.sendgrid.net [167.89.16.28]) by nue.mailmanlists.eu (Postfix) with ESMTPS id 7E7DC7E78A for ; Mon, 28 Nov 2022 22:39:02 +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; s=s1; bh=PcWYL2obAKeKKB1jEmlha7IVgT4bquBDnbTbc4zRiDU=; b=ji4/mdVJ0wmCwxKlKUNDfVFyEzdrBl7XHT/X4xrBBHOQGnKGj7X+IQW1z34O4RTVCeer Ggu1uUGoqF7gWFEsm3w68xsed01Q+AJgFLpfY+UbwE5XLp/uUMog9FlfjYfBtYbW34qFLc RhHdsVOhnjfirDye7zGL5iSb99poAZkcWsbesccGFvlWLJpaJJRF5iGOM3U+M4+gbSygUF vGR/06nrkI5l50Ga0H5mDdGVleU9UuPgP/juTXxuygsAKgTBgDN6KUMxVjCvZjbqYHaAk7 GjzK0YAm8n3wAQgWJMXnbDEqIArDPn5+ojog99WfgQpQmlVOo/FPOhWMtCIhsPrw== Received: by filterdrecv-6b9548745c-xn4dv with SMTP id filterdrecv-6b9548745c-xn4dv-1-63853884-3A 2022-11-28 22:39:00.730657373 +0000 UTC m=+948654.418433331 Received: from herokuapp.com (unknown) by geopod-ismtpd-4-3 (SG) with ESMTP id qhckq_ewRFOEHMYO5kU8Fg for ; Mon, 28 Nov 2022 22:39:00.713 +0000 (UTC) Date: Mon, 28 Nov 2022 22:39:00 +0000 (UTC) From: "matz (Yukihiro Matsumoto)" Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Feature X-Redmine-Issue-Id: 19134 X-Redmine-Issue-Author: shugo X-Redmine-Issue-Assignee: matz X-Redmine-Sender: matz 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: 87387 X-SG-EID: =?us-ascii?Q?SqOeWfVKFgkgw8cVgc6MYslIG5ZBbSbWU3opJ5u4yBsU3yWoizgPd1Pss4ZMTd?= =?us-ascii?Q?OLBRodnvQO26=2FFyqng1x72rdTkbmTHg5l1+yKA9?= =?us-ascii?Q?AQWjb7SR3fdWR55WmBuJSJXmIfnxTSZdkjpl2kX?= =?us-ascii?Q?PfzZIu43CMaKJ0lakEeOJVtJO0mjy4n2f6ufyhF?= =?us-ascii?Q?ZckZbw+rJfoBYgqaGQ2lhM0fVT5DhWI+E5ri24Q?= =?us-ascii?Q?3s7LZGwqcu+TGVrmiu=2Fhnbhhlzu7XujkjLfZ4r2?= =?us-ascii?Q?xWcaan9+F=2FzG3g1rwFR8w=3D=3D?= To: ruby-dev@ml.ruby-lang.org X-Entity-ID: b/2+PoftWZ6GuOu3b0IycA== Message-ID-Hash: 6TEJEBZIIHDSK3JQFOJ6IRY7JGOL2KP2 X-Message-ID-Hash: 6TEJEBZIIHDSK3JQFOJ6IRY7JGOL2KP2 X-MailFrom: bounces+313651-12dc-ruby-dev=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 (Japanese)" Subject: =?utf-8?q?=5Bruby-dev=3A52004=5D_?= [Ruby master Feature#19134] ** is not allowed in def foo(...) List-Id: "Ruby developers (Japanese)" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Issue #19134 has been updated by matz (Yukihiro Matsumoto). LGTM. Matz. ---------------------------------------- Feature #19134: ** is not allowed in def foo(...) https://bugs.ruby-lang.org/issues/19134#change-100293 * Author: shugo (Shugo Maeda) * Status: Open * Priority: Normal * Assignee: matz (Yukihiro Matsumoto) ---------------------------------------- `*` and `&` are allowed in the body of a method with `...` argument forwarding, but `**` is not allowed. ``` def foo(...) bar(*) # OK baz(&) # OK quux(**) # NG end ``` Is it intended behavior? It seems that parse.y has code like `#ifdef RUBY3_KEYWORDS`, and if RUBY3_KEYWORDS, `**` will also be supported. -- https://bugs.ruby-lang.org/