Project

General

Profile

Actions

Feature #3685

closed

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

Added by postmodern (Hal Brodigan) over 14 years ago. Updated about 12 years ago.

Status:
Rejected
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

Actions #1

Updated by shyouhei (Shyouhei Urabe) over 14 years ago

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

=begin

=end

Actions #2

Updated by naruse (Yui NARUSE) almost 14 years ago

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

=begin

=end

Updated by mame (Yusuke Endoh) about 12 years ago

  • Description updated (diff)
  • Target version set to 2.6

Updated by matz (Yukihiro Matsumoto) about 12 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.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0