Re: [Ironruby-core] Bug filed: Array#hash should properly handle recursive arrays

2009-04-16 Thread Curt Hagenlocher
; ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] Bug filed: Array#hash should properly handle recursive arrays See RubyFileOps.Join for an example. Tomas -Original Message- From: Tomas Matousek Sent: Thursday, April 16, 2009 4:06 PM To: ironruby-core@rubyforge.org Subject: RE

Re: [Ironruby-core] Bug filed: Array#hash should properly handle recursive arrays

2009-04-16 Thread Tomas Matousek
See RubyFileOps.Join for an example. Tomas -Original Message- From: Tomas Matousek Sent: Thursday, April 16, 2009 4:06 PM To: ironruby-core@rubyforge.org Subject: RE: [Ironruby-core] Bug filed: Array#hash should properly handle recursive arrays Does Ruby call "hash" dyna

Re: [Ironruby-core] Bug filed: Array#hash should properly handle recursive arrays

2009-04-16 Thread Tomas Matousek
o:ironruby-core-boun...@rubyforge.org] On Behalf Of Daniele Alessandri Sent: Thursday, April 16, 2009 3:29 PM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] Bug filed: Array#hash should properly handle recursive arrays Great, that's exactly what I used :-) Thanks On Fri, Apr

Re: [Ironruby-core] Bug filed: Array#hash should properly handle recursive arrays

2009-04-16 Thread Daniele Alessandri
ilto:ironruby-core-boun...@rubyforge.org] On Behalf Of Shri Borde > Sent: Thursday, April 16, 2009 3:06 PM > To: ironruby-core@rubyforge.org > Subject: Re: [Ironruby-core] Bug filed: Array#hash should properly handle > recursive arrays > > I can fix RubyArray.GetHashCode to handle

Re: [Ironruby-core] Bug filed: Array#hash should properly handle recursive arrays

2009-04-16 Thread Shri Borde
Subject: Re: [Ironruby-core] Bug filed: Array#hash should properly handle recursive arrays I can fix RubyArray.GetHashCode to handle the simple case of an array containing itself. However, the simple fix wont deal with the case where the array is indirectly recursive as in this snippet. a

Re: [Ironruby-core] Bug filed: Array#hash should properly handle recursive arrays

2009-04-16 Thread Shri Borde
dri Sent: Thursday, April 16, 2009 2:20 PM To: ironruby-core@rubyforge.org Subject: [Ironruby-core] Bug filed: Array#hash should properly handle recursive arrays Hi, I have just filed this bug on CodePlex: http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=605 It is actually pretty easy

[Ironruby-core] Bug filed: Array#hash should properly handle recursive arrays

2009-04-16 Thread Daniele Alessandri
Hi, I have just filed this bug on CodePlex: http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=605 It is actually pretty easy to fix with a bunch of lines of code in RubyArray.GetHashCode (just tested, too bad IronRuby.dll is not open to contributions) and, as a result, this would resolve