From: Arthur Schreiber Date: 2008-06-10T22:03:32+09:00 Subject: [ruby-core:17187] [Ruby 1.8 - Bug #118] SortedSet#inspect does not work with nested SortedSets --mimepart_484e79e73a391_624e866d2c820d9 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: Quoted-printable Content-Disposition: inline Issue #118 has been updated by Arthur Schreiber. File set.patch added I attached a new patch for the set library. I changed Set#merge to only directly use the passed objects @hash instanc= e variable, when self and the passed object are instances of the same class. This prevents bugs when using a SortedSet in conjunction with the rbtree = library. Additionally, It prevents the merging of non-Comparable Objects when call= ing SortedSet#merge with a Set. I hope the patch is ok now. ---------------------------------------- Bug #118: SortedSet#inspect does not work with nested SortedSets http://redmine.ruby-lang.org/issues/show/118 Author: Arthur Schreiber Status: Open Priority: Normal Assigned to: Akinori MUSHA Category: = Target version: = SortedSet["a", "b", SortedSet["c"]].inspect # =3D> raises an ArgumentErro= r: comparison of String with SortedSet failed ---------------------------------------- You have received this notification because you have either subscribed to= it, or are involved in it. To change your notification preferences, please click here: http://redmin= e.ruby-lang.org/my/account --mimepart_484e79e73a391_624e866d2c820d9--