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

From: Otto Hilska <otto.hilska@...>
Date: 2008-08-06 13:05:00 UTC
List: ruby-core #18148
Nobuyoshi Nakada wrote:
> Hi,
> 
> At Wed, 6 Aug 2008 20:16:00 +0900,
> Otto Hilska wrote in [ruby-core:18145]:
>> Since most other Ruby classes have a name with the first letter in 
>> uppercase, I think "fatal" should be no exception.
> 
> Ruby scripts should not use it.
> 

It's still available for the scripts. For example, running in Rails 
environment:

 >> Object.subclasses
SyntaxError: (eval):1:in `subclasses_of': compile error
(eval):1: syntax error, unexpected tIDENTIFIER, expecting tCONSTANT
defined?(::fatal) && ::fatal.object_id == k.object_id
                 ^
         from 
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/core_ext/object/extending.rb:15:in 
`subclasses_of'
         from 
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/core_ext/object/extending.rb:13:in 
`eval'
         from 
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/core_ext/object/extending.rb:15:in 
`subclasses_of'
         from 
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/core_ext/object/extending.rb:13:in 
`each_object'
         from 
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/core_ext/object/extending.rb:13:in 
`subclasses_of'
         from 
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/core_ext/class/removal.rb:16:in 
`subclasses'
         from (irb):1

There're some other cases too, where having a class with a lower-case 
first letter can cause surprising effects. For me the problem was when 
we were importing Ruby sources (and thus all classes) to apidock.com.

If 'fatal' should not be used in scripts, changing the name should not 
cause compatibility issues either. So what are the reasons for keeping 
it lower-case?

  - Otto

In This Thread