Summary: It should be possible to query template parameters
                    with __traits
           Product: D
           Version: future
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD

--- Comment #0 from 2010-06-02 20:33:10 PDT ---
Consider you have

struct(T1, T2) Foo {

alias Foo!(int, float) X;

You should be able to extract (int, float) from X.
Often it is possible to get the parameters indirectly from members, but there
doesn't seem to be a way to do this in the general case.

I suggest:

__traits(getTemplateParameters, X)

which would yield  a (int, float) tuple.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to