[#11439] comments needed for Random class — "NAKAMURA, Hiroshi" <nakahiro@...>

-----BEGIN PGP SIGNED MESSAGE-----

15 messages 2007/06/12

[#11450] Re: new method dispatch rule (matz' proposal) — David Flanagan <david@...>

This is a late response to the very long thread that started back in

17 messages 2007/06/13

[#11482] Ruby Changes Its Mind About Non-Word Characters — James Edward Gray II <james@...>

Does this look like a bug to anyone else?

10 messages 2007/06/16

[#11505] Question about the patchlevel release cycle — Sylvain Joyeux <sylvain.joyeux@...4x.org>

1.8.6 thread support was broken in bad ways. It stayed for three months

20 messages 2007/06/20
[#11512] Re: Question about the patchlevel release cycle — Urabe Shyouhei <shyouhei@...> 2007/06/20

Hi, I'm the 1.8.6 branch manager.

[#11543] Re: Apple reportedly to ship with ruby 1.8.6-p36 unless informed what to patch — James Edward Gray II <james@...>

On Jun 27, 2007, at 4:47 PM, Bill Kelly wrote:

10 messages 2007/06/27

Re: Error in ancestor?

From: "Rick DeNatale" <rick.denatale@...>
Date: 2007-06-16 14:24:12 UTC
List: ruby-core #11479
On 6/16/07, Robert Dober <robert.dober@gmail.com> wrote:
> Hi list
>
> I just observed this (and it cost me quite some effort to debug my code :( )
>
> 515/15 > ruby -ve 'class << Class::new; puts self; puts ancestors.inspect end'
> ruby 1.8.5 (2006-12-04 patchlevel 2) [i686-linux]
> #<Class:#<Class:0xb7dfae50>>
> [Class, Module, Object, Kernel]
>
>
> this seems to be in contradiction with
> http://www.ruby-doc.org/core/classes/Module.html#M001700
> stating
> -----------------------------------------------------------------------------
>   mod.ancestors → array
>
> Returns a list of modules included in mod (including mod itself).
>                                                                  =============
>
>    module Mod
>      include Math
>      include Comparable
>    end
>
>    Mod.ancestors    #=> [Mod, Comparable, Math]
>    Math.ancestors   #=> [Math]
> ---------------------------------------------------------------------------
>
> Is this an error in doc or in behavior?

ancestors is one of those methods, like class, which skip over
singleton classes.

-- 
Rick DeNatale

My blog on Ruby
http://talklikeaduck.denhaven2.com/

In This Thread