www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20961] New: Make is-Template easier

https://issues.dlang.org/show_bug.cgi?id=20961

          Issue ID: 20961
           Summary: Make is-Template easier
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: qs.il.paperinik gmail.com

In an type is-Expression like is(T == int), if the rhs is a template Tmpl, one
can ask the compiler whether T is an instance of Tmpl like this:

    is(T == Tmpl!Args, Args...)

which introduces symbols. Why not having

    is(T == Templ!(...))

for that as a shorthand?

--
Jun 20