ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> ruby-talk
ruby-talk
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved