http://d.puremagic.com/issues/show_bug.cgi?id=4265
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 AssignedTo: nob...@puremagic.com ReportedBy: nfx...@gmail.com --- Comment #0 from nfx...@gmail.com 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: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------