[Issue 15436] New: Compiler still refers to AliasSeq-s as "tuple"-s (and TypeTuple?)
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Sat Dec 12 03:15:26 PST 2015
    
    
  
https://issues.dlang.org/show_bug.cgi?id=15436
          Issue ID: 15436
           Summary: Compiler still refers to AliasSeq-s as "tuple"-s (and
                    TypeTuple?)
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: samjnaa at gmail.com
With DMD 2.0.69.2, compiling the following code:
import std.stdio, std.meta;
void main()
{
    alias AS = AliasSeq!(int, 2);
    void func(AS td) {}
}
produces the error:
Error: tuple TList is used as a type
This is inconsistent with the renaming of TypeTuple to AliasSeq and should be
fixed. I searched through the DMD sources and while I found that it is mtype.d
which causes the error (correctly) I am not sure which line labels this
particular object as "tuple".
I find lots of references to "tuple"s and even "TypeTuple"s (shudder) in
mtype.d and wonder why these aren't cleaned out...
While I have submitted a PR for cleaning out the word TypeTuple from Phobos:
https://github.com/D-Programming-Language/phobos/pull/3756, I dare not enter
the esoteric world of compilers, so I hope somebody cleans this up...
--
    
    
More information about the Digitalmars-d-bugs
mailing list