[Issue 24726] New: Make alias work properly

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Aug 28 08:01:45 UTC 2024


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

          Issue ID: 24726
           Summary: Make alias work properly
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: critical
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: turkeyman at gmail.com

There were a bunch of bugs related to alias failing in various cases, and all
the bugs have been closed now, along with a message saying "now there's an
error message"... and like, wtaf?

This isn't fixed; now there's just a formal recognition that it's broken.
I mean, they say that acknowledgement is the first step to recovery, so
hopefully we can move forward. This issue shall stay until it works...

----------------------------

struct S
{
  int x;
}

S instance;

alias xa = instance.x;

----------------------------

alias m = __traits(getMember, instance, member);

----------------------------

alias a = myStruct.tupleof;
alias x = a[0];

----------------------------

...there are countless permutations.

This is a major chasm right in the middle of D's biggest strength and selling
point. It's been well understood and people begging to have this resolved for
literally decades (plural).

Fix this, don't just close the issues.

--


More information about the Digitalmars-d-bugs mailing list