[Issue 24717] New: alias edge cases

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Aug 24 17:47:46 UTC 2024


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 at puremagic.com
          Reporter: turkeyman at 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.

--


More information about the Digitalmars-d-bugs mailing list