Thread overview
[Issue 5763] New: traits.d BaseClassesTuple function incorrectly handles Object class argument
Mar 21, 2011
Pupatenko Ilya
Mar 21, 2011
Pupatenko Ilya
Mar 21, 2011
Pupatenko Ilya
Jan 08, 2013
Andrej Mitrovic
March 21, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5763

           Summary: traits.d BaseClassesTuple function incorrectly handles
                    Object class argument
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Phobos
        AssignedTo: nobody@puremagic.com
        ReportedBy: piv@bk.ru


--- Comment #0 from Pupatenko Ilya <piv@bk.ru> 2011-03-21 12:41:01 PDT ---
It is said in documentation of std.traits module that "BaseTypeTuple!(Object) returns the empty type tuple."

But in D 2.052 the follownig code fails to compile:

import std.traits, std.typetuple, std.stdio;
void main()
{
    writeln(typeid(BaseClassesTuple!Object));
}

The error message is:
<...>\src\phobos\std\traits.d(1772): Error: tuple index 0 exceeds 0

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 21, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5763



--- Comment #1 from Pupatenko Ilya <piv@bk.ru> 2011-03-21 12:43:10 PDT ---
Created an attachment (id=932)
Trivial patch to fix an issue

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 21, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5763



--- Comment #2 from Pupatenko Ilya <piv@bk.ru> 2011-03-21 12:47:58 PDT ---
(In reply to comment #0)
> It is said in documentation of std.traits module that "BaseTypeTuple!(Object) returns the empty type tuple."

I made a mistake, should be "BaseClassesTuple!(Object)"

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 08, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=5763


Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
                 CC|                            |andrej.mitrovich@gmail.com
         AssignedTo|nobody@puremagic.com        |andrej.mitrovich@gmail.com


--- Comment #3 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-01-08 13:22:59 PST ---
https://github.com/D-Programming-Language/phobos/pull/1061

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 09, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=5763


Andrei Alexandrescu <andrei@erdani.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrei@erdani.com
         Resolution|                            |FIXED


--- Comment #4 from Andrei Alexandrescu <andrei@erdani.com> 2013-01-08 17:40:02 PST ---
https://github.com/D-Programming-Language/phobos/pull/1061

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------