[Issue 20961] New: Make is-Template easier
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jun 20 13:42:23 UTC 2020
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 at puremagic.com
Reporter: qs.il.paperinik at 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?
--
More information about the Digitalmars-d-bugs
mailing list