www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 5763] New: traits.d BaseClassesTuple function incorrectly handles Object class argument

reply d-bugmail puremagic.com writes:
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



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: -------
Mar 21 2011
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5763




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: -------
Mar 21 2011
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5763





 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: -------
Mar 21 2011
prev sibling next sibling parent d-bugmail puremagic.com writes:
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



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: -------
Jan 08 2013
prev sibling parent d-bugmail puremagic.com writes:
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



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: -------
Jan 08 2013