Re: arg, metaclass bug found?
by Mark Sparshatt other posts by this author
May 1 2005 2:41AM messages near this date
Re: arg, metaclass bug found?
|
about rubyforge: skills and advogato
Robert Klemme wrote:
>
> <nobu.nokada@[...].net> schrieb im Newsbeitrag
> news:200504300320.j3U3KaYY017937@[...]..
>
> > Hi,
> >
> > At Sat, 30 Apr 2005 11:29:27 +0900,
> > Lionel Thiry wrote in [ruby-talk:140557]:
> >
> >> Test2 < Test1 # => true
> >>
> >> # the bug is here
> >> Test2.meta < Test1.meta # => nil
> >> # it should have benn true instead of nil
> >
> >
> > true is returned in 1.9.
>
>
> Hm, why is that? What do the singleton classes of Test2 and Test1 have
> in common? This surprises me...
>
According to the Pickaxe if Test2 is a subclass of Test1 then Test2.meta
should be a subclass of Test1.meta
Entering
Test2.meta.superclass #=> #<Class:Test1>
--
Mark Sparshatt
Thread:
Robert Klemme
Mark Sparshatt
|