[#18121] [Ruby 1.8.7 - Bug #405] (Open) ssl.rb:31: [BUG] Bus Error — Anonymous <redmine@...>

Issue #405 has been reported by Anonymous.

14 messages 2008/08/04

[#18130] Re: New array methods cycle, choice, shuffle (plus bug in cycle) — Brian Candler <B.Candler@...>

> Seriously though... Array.first is a noun.

10 messages 2008/08/05

[#18319] NEW Command: absolute_path() -- — "C.E. Thornton" <admin@...>

Core,

14 messages 2008/08/16
[#18321] Re: NEW Command: absolute_path() -- — Yukihiro Matsumoto <matz@...> 2008/08/18

Hi,

[#18381] [Bug #496] DRb.start_service(nil) is very slow — Hongli Lai <redmine@...>

Bug #496: DRb.start_service(nil) is very slow

11 messages 2008/08/25

[ruby-core:18077] Re: Equality of recursive arrays

From: Nobuyoshi Nakada <nobu@...>
Date: 2008-08-02 03:14:45 UTC
List: ruby-core #18077
Hi,

At Sat, 2 Aug 2008 09:02:16 +0900,
Vladimir Sizikov wrote in [ruby-core:18076]:
> Essentially, the equality is not working right for recursive arrays,
> at least it seems that it doesn't work right for me:
> 
> Case #1:
> 
> a = []
> a << a
> b = []
> b << b
> 
> a == b #=> returns *false*
> 
> Is that expected or bug? The inspect values are the same.

It means ``no more comparison can continue,'' so a <=> b
returns nil.

> On the other hand, when we use #dup:
> 
> Case #2:
> 
> a = [1]
> a << a
> b = a.dup
> 
> a == b #=> returns *true*

a is [a], and b is also [a], so they're equal.

-- 
Nobu Nakada

In This Thread