Summary: Typetuples (T...) should have an .init member
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD

--- Comment #0 from Philippe Sigaud <> 2010-07-30 
12:05:32 CEST ---
Typetuples (T...) should have an .init member. Them not having it is a bother
for generic code.

Say I have a template that takes an alias and a T..., and I want to verify that
the alias is a function accepting T...:

template Test(alias fun ,T...)
if (is(typeof(fun(T.init)))

This does not work, which I find frustrating.

I have to use this workaround:

template Init(T...)
    alias (Tuple!T.init).expand Init;

That is, using std.typecons.Tuple as an initiator.

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

Reply via email to