Project

General

Profile

Actions

Feature #3685

closed

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

Added by postmodern (Hal Brodigan) over 13 years ago. Updated over 11 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 13 years ago

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

=begin

=end

Actions #2

Updated by naruse (Yui NARUSE) about 13 years ago

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

=begin

=end

Updated by mame (Yusuke Endoh) over 11 years ago

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

Updated by matz (Yukihiro Matsumoto) over 11 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