[Issue 10193] New: Template args to UDA's

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue May 28 06:45:06 PDT 2013


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

           Summary: Template args to UDA's
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: turkeyman at gmail.com


--- Comment #0 from Manu <turkeyman at gmail.com> 2013-05-28 06:45:05 PDT ---
So I've run into an expression I need to implement std.simd properly for
GDC/LDC.

Doesn't work:
  @attribute("target", T) void func(string T)(...);

In this case, currently, the UDA can't receive the template arg that was given
to the function.

I require that attributes on templates be able to make use of the template
args, since the template arg given may affect the attribute in some
circumstances.

This is blocking cross-platform support in std.simd.

-- 
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