[前][次][番号順一覧][スレッド一覧]

ruby-changes:65947

From: Jeremy <ko1@a...>
Date: Sat, 24 Apr 2021 08:47:19 +0900 (JST)
Subject: [ruby-changes:65947] 1f2b5c6dfe (master): Remove part of comment that is no longer accurate

https://git.ruby-lang.org/ruby.git/commit/?id=1f2b5c6dfe

From 1f2b5c6dfe86e8ea2bbcd9a70d7a129da7e64a4a Mon Sep 17 00:00:00 2001
From: Jeremy Evans <code@j...>
Date: Fri, 23 Apr 2021 16:43:00 -0700
Subject: Remove part of comment that is no longer accurate

In Ruby 2.7, empty keyword splats could be added back for backwards
compatibility.  However, that stopped in Ruby 3.0.
---
 vm_insnhelper.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index be09fb3..7c715c9 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -2262,11 +2262,6 @@ CALLER_REMOVE_EMPTY_KW_SPLAT(struct rb_control_frame_struct *restrict cfp, https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L2262
     if (UNLIKELY(calling->kw_splat)) {
         /* This removes the last Hash object if it is empty.
          * So, vm_ci_flag(ci) & VM_CALL_KW_SPLAT is now inconsistent.
-         * However, you can use vm_ci_flag(ci) & VM_CALL_KW_SPLAT to
-         * determine whether a hash should be added back with
-         * warning (for backwards compatibility in cases where
-         * the method does not have the number of required
-         * arguments.
          */
         if (RHASH_EMPTY_P(cfp->sp[-1])) {
             cfp->sp--;
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]