[#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:18193] Re: [PATCH] error.c (Init_Exception): Rename class "fatal" to "Fatal"

From: "Jeremy Kemper" <jeremy@...>
Date: 2008-08-08 04:28:32 UTC
List: ruby-core #18193
On Thu, Aug 7, 2008 at 6:23 PM, Urabe Shyouhei <shyouhei@ruby-lang.org> wrote:
> Daniel Luz wrote:
>>> It's not used purposefully. The script above assumes that every Ruby
>>> class has a valid Ruby name. It seems a fair assumption.
>>>
>>
>> Considering Module#name can be overridden and constants can be redefined, I
>> wouldn't rely too much on that assumption.

It's definitely a fragile assumption. Maybe there's a better way.

> And there are anonymous modules:
>
> % ruby -e'p Module.new.name'                                                                                                                  [2008/Aug/08(Fri) 10:16:55 JST][shyouhei][SZ92PS][pts/4][screen 2]
> ""

Right; the code above skips anonymous classes.

'fatal' is exceptional because it's a named constant, responds to name
like any other class, but cannot be referenced in Ruby using its name.

This edge case happens to affect this obscure code. I don't think it's
a real issue :)

jeremy

In This Thread