[#9722] Kernel#system broken inside Dir.chdir(&block) if system command doesn't have shell characters — <noreply@...>

Bugs item #7278, was opened at 2006-12-14 13:59

8 messages 2006/12/14

[#9749] System V IPC in standard library? — Steven Jenkins <steven.jenkins@...>

Back in August, I needed a semaphore to serialize access to an external

14 messages 2006/12/19

[#9753] CVS freeze — SASADA Koichi <ko1@...>

Hi,

20 messages 2006/12/20
[#9755] Re: [ruby-dev:30039] CVS freeze — SASADA Koichi <ko1@...> 2006/12/20

Hi,

[#9757] Re: [ruby-dev:30040] Re: CVS freeze — SASADA Koichi <ko1@...> 2006/12/20

Hi,

Re: [ ruby-Bugs-6820 ] #ancestors never includes the singleton class (inconsistent)

From: Calamitas <calamitates@...>
Date: 2006-12-19 15:10:35 UTC
List: ruby-core #9746
On 12/19/06, Yukihiro Matsumoto <matz@ruby-lang.org> wrote:
> I just remembered I made decision that singleton classes (or
> eigenclasses) were "real" anonymous classes rather than theoretical
> place holder.  That means having singleton classes in ancestors list
> makes sense.  I will change the behavior in the future.
>
> This is a step toward eigenclass method.

Then would you consider making the following changes as well?

* Return singleton classes from ObjectSpace#each_object
* Call Class#inherited when singleton classes are created
* "Fix" Class#superclass for the singleton class of a class:
    class A ; end
    class B < A ; end
    c = class << B ; self ;end   #=> #<Class:B>
    c = c.superclass   #=> #<Class:Class>
    c = c.superclass   #=> #<Class:Class>
    ...
  I'd expect to see the sequence #<Class:B>, #<Class:A>,
  #<Class:Object>, Class, Module, Object, nil. That is the way
  1.9 behaves, except that BasicObject is the root of the hierarchy,
  and that BasicObject#superclass raises a TypeError.

Peter

In This Thread