ruby-cvs:21040
From: matz ruby-lang.org
Date: Fri, 2 Nov 2007 15:30:27 +0900 (JST)
Subject: [ruby-cvs:21040] Ruby:r13803 (ruby_1_8): * array.c (rb_ary_assoc): check and convert inner arrays (assocs)
matz 2007-11-02 15:30:26 +0900 (Fri, 02 Nov 2007)
New Revision: 13803
Modified files:
branches/ruby_1_8/ChangeLog
branches/ruby_1_8/array.c
branches/ruby_1_8/hash.c
branches/ruby_1_8/version.h
Log:
* array.c (rb_ary_assoc): check and convert inner arrays (assocs)
using #to_ary.
* hash.c (rb_hash_s_create): check and convert argument hash
using #to_hash.
* hash.c (rb_hash_s_create): Hash#[] now takes assocs as source of
hash conversion.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/ChangeLog?r1=13803&r2=13802
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/version.h?r1=13803&r2=13802
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/hash.c?r1=13803&r2=13802
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/array.c?r1=13803&r2=13802