[Issue 10231] New: Spec: Document alias value feature

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jun 1 13:54:23 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10231

           Summary: Spec: Document alias value feature
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: spec
          Severity: minor
          Priority: P2
         Component: websites
        AssignedTo: nobody at puremagic.com
        ReportedBy: andrej.mitrovich at gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-06-01 13:54:22 PDT ---
Recently Kenji mentioned that the following works:

-----
struct X(alias int x)
{
}

void main()
{
    int i;
    alias X!i IVal;  // ok

    float f;
    alias X!f FVal;  // fail
}
-----

Even if this is allowed by the current syntax rules, it is largely an
undocumented feature (compiler implementers could easily miss this feature as
well). It should be properly documented.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list