Project

General

Profile

Feature #3685

Struct does not define #to_ary, needed for implicit-splat.

Added by postmodern (Hal Brodigan) about 7 years ago. Updated almost 5 years ago.

Status:
Rejected
Priority:
Normal
Target version:
[ruby-core:31686]

Description

=begin
Now that #to_ary is used for implicit-splat, I believe it would be useful to support implicit-splat for Structs, since they share some behavior with Arrays.
=end

History

#1 Updated by shyouhei (Shyouhei Urabe) about 7 years ago

  • Status changed from Open to Assigned
  • Assignee set to naruse (Yui NARUSE)

=begin

=end

#2 Updated by naruse (Yui NARUSE) over 6 years ago

  • Assignee changed from naruse (Yui NARUSE) to matz (Yukihiro Matsumoto)

=begin

=end

#3 [ruby-core:49143] Updated by mame (Yusuke Endoh) almost 5 years ago

  • Description updated (diff)
  • Target version set to next minor

#4 [ruby-core:49162] Updated by matz (Yukihiro Matsumoto) almost 5 years ago

  • Status changed from Assigned to Rejected

Struct objects are not arrays. to_ary should be defined for objectw that conform every Array methods.

Matz.

Also available in: Atom PDF