Skip to content

Support splat arguments in Kernel#send builtin#400

Merged
mame merged 1 commit intoruby:masterfrom
mame:support-kernel-send-with-splat-args
Feb 26, 2026
Merged

Support splat arguments in Kernel#send builtin#400
mame merged 1 commit intoruby:masterfrom
mame:support-kernel-send-with-splat-args

Conversation

@mame
Copy link
Member

@mame mame commented Feb 26, 2026

Handle the case where send receives a splatted array (e.g., send(*[:foo, 1])). For tuple arrays, extract the first element as the method name and remaining elements as arguments with full per-element precision. For non-tuple arrays, use the unified element type as the method name.

Handle the case where send receives a splatted array (e.g., send(*[:foo, 1])).
For tuple arrays, extract the first element as the method name and remaining
elements as arguments with full per-element precision. For non-tuple arrays,
use the unified element type as the method name.
@mame mame merged commit 463e359 into ruby:master Feb 26, 2026
7 checks passed
@mame mame deleted the support-kernel-send-with-splat-args branch February 26, 2026 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant