diff --git a/ChangeLog b/ChangeLog index 4387482db7..c85aa5eb5d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Mon Nov 19 16:30:59 2012 Nobuyoshi Nakada + + * struct.c (rb_struct_each_pair): yield associated pairs so that + an unsplat argument can get both, for consistency with Hash, + OpenStruct, and etc. [ruby-dev:46533] [Bug #7382] + Mon Nov 19 16:17:53 2012 Nobuyoshi Nakada * configure.in (LIBS): libelf is need on only FreeBSD. diff --git a/struct.c b/struct.c index 17e53ab4e0..7f01acbb88 100644 --- a/struct.c +++ b/struct.c @@ -495,7 +495,9 @@ rb_struct_each_pair(VALUE s) RETURN_SIZED_ENUMERATOR(s, 0, 0, rb_struct_size); members = rb_struct_members(s); for (i=0; i