www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 24717] New: alias edge cases

https://issues.dlang.org/show_bug.cgi?id=24717

          Issue ID: 24717
           Summary: alias edge cases
           Product: D
           Version: D2
          Hardware: All
               URL: http://dlang.org/library/std/typecons.html
                OS: All
            Status: NEW
          Severity: critical
          Priority: P3
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: turkeyman gmail.com

alias x = s.tupleof; // this works
alias y = s.tupleof[0]; // this is a compile error?!

It's long past time to fix this.

alias has an overwhelming sea of edge cases. It's extremely off-putting to
potential D users, because this category of meta is absolutely integral to why
they try out the language at all.

--
Aug 24