Array#eql? result differs from MRI with recursive arrays
--------------------------------------------------------

                 Key: JRUBY-5299
                 URL: http://jira.codehaus.org/browse/JRUBY-5299
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.5.6
         Environment: jruby 1.5.6 (ruby 1.8.7 patchlevel 249) (2010-12-03 
9cf97c3) (Java HotSpot(TM) Client VM 1.6.0_03-p3) [i386-java]
            Reporter: Daniel Berger
            Priority: Minor


Dig into eval.c if you're really interested...
{code}
a1 = [1,2,3]
a2 = [1,2,3]

a1 << a1
a2 << a2

p a1.eql?(a2) # => false in MRI, true in JRuby
{code}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to