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: AS4713 221.184.0.0/13 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_MED,SPF_HELO_PASS,SPF_PASS,UNPARSEABLE_RELAY shortcircuit=no autolearn=no autolearn_force=no version=3.4.2 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id 84D681F910 for ; Thu, 17 Nov 2022 09:27:14 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 5FF00120FE2; Thu, 17 Nov 2022 18:27:05 +0900 (JST) Received: from o1678948x4.outbound-mail.sendgrid.net (o1678948x4.outbound-mail.sendgrid.net [167.89.48.4]) by neon.ruby-lang.org (Postfix) with ESMTPS id 65E45120CD2 for ; Thu, 17 Nov 2022 18:27:03 +0900 (JST) 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=OorRQsmQdtaDGisMojPwiKyNQIf+nNhr9+TOiAhKQNg=; b=g3hPjf755yOo3nHrK2KvdSryIoa9OYPqLsePktkcPW/dCpIULEtF+/t5EYol/eL2zyI5 NYNE89kKfJ3RRIiseRdM/wlQw2Dunki8LuYvH0La6a3nXfhHBbRGBK58ixLmEL3yM3YFQy 0OtGnuWnsszkB5HAFCZouCwGbloX9B52wh11fBg7kemkSRi5aCTWyGQVkGvrd4Kd7WXEqY VZR2r5yiyPVxtIZNwEbCA/E2uS5OM/OfXXAP1ydcEjOcdgCEGJA8hUDVM1lkyGpDsLU4D3 2MyDeViZXteC+oXHr/0AE1CbQS9GFxHvWeMzjEa6w3m2fgY53ZeE3rArpAXkJgow== Received: by filterdrecv-6df5cf8469-hj7s7 with SMTP id filterdrecv-6df5cf8469-hj7s7-1-6375FE64-15 2022-11-17 09:27:00.824262889 +0000 UTC m=+567606.900363345 Received: from herokuapp.com (unknown) by geopod-ismtpd-5-4 (SG) with ESMTP id uWxp40NFSaaxyXrwENXb_Q for ; Thu, 17 Nov 2022 09:27:00.657 +0000 (UTC) Date: Thu, 17 Nov 2022 09:27:00 +0000 (UTC) From: "shugo (Shugo Maeda)" 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: shugo 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: 87254 X-SG-EID: =?us-ascii?Q?o0C=2FsDUd4ZFGiDZCTbvVjqibxcpCfydz4lwnBQWyXZ+Plw=2FfhrG0CQPbrktOPX?= =?us-ascii?Q?NfKIrb7bilCwkXET66DNxoL7CWC=2FxRpcR0mmPNu?= =?us-ascii?Q?Ge3J3vHjXzGHI8NNRlhQGVLj3tGC4jJsBIYDGx6?= =?us-ascii?Q?=2FH4w9Nk=2FR+RO0EcR1pXxFIhk7tlaSZYH42r+ClD?= =?us-ascii?Q?UTEskfytJo7n2RISuV2OaYZqK25RgAHbv5GZeKf?= =?us-ascii?Q?8dtG0EFXINY+ep3HUIJg0cJPHpHAFHt0AmVy71k?= =?us-ascii?Q?ZATgZHgsBA+ns54ODnhdQ=3D=3D?= To: ruby-dev@neon.ruby-lang.org X-Entity-ID: b/2+PoftWZ6GuOu3b0IycA== X-ML-Name: ruby-dev X-Mail-Count: 51203 Subject: [ruby-dev:51203] [Ruby master Feature#19134] ** is not allowed in def foo(...) X-BeenThere: ruby-dev@ruby-lang.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Ruby developers \(Japanese\)" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Reply-To: "Ruby developers \(Japanese\)" Errors-To: ruby-dev-bounces@ruby-lang.org Sender: "ruby-dev" Issue #19134 has been reported by shugo (Shugo Maeda). ---------------------------------------- Feature #19134: ** is not allowed in def foo(...) https://bugs.ruby-lang.org/issues/19134 * 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/