Bug 20961 – Make is-Template easier

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2020-06-20T13:42:23Z
Last change time
2024-12-13T19:09:31Z
Assigned to
No Owner
Creator
Bolpat
Moved to GitHub: dmd#19729 →

Comments

Comment #0 by qs.il.paperinik — 2020-06-20T13:42:23Z
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?
Comment #1 by robert.schadek — 2024-12-13T19:09:31Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19729 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB