Bug 2226 – is expression for associative arrays: is(U T == T[S], S)
Status
RESOLVED
Resolution
WONTFIX
Severity
minor
Priority
P3
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Linux
Creation time
2008-07-15T06:04:00Z
Last change time
2014-03-01T00:35:49Z
Keywords
spec
Assigned to
nobody
Creator
d
Comments
Comment #0 by d — 2008-07-15T06:04:21Z
It does not appear to be possible to use the equivalent of is(U T == T[]) for associative arrays (although this kind of thing is possible with templates). From the mailing lists I gather the "correct" notation would be:
is(U T == T[S], S)
although the spec is unclear on the matter.
But also I gather that many people want the whole type specialization syntax to be improved anyway?
Comment #1 by kamm-removethis — 2009-06-27T10:38:59Z
I've marked this as WONTFIX as D2 has this feature and D1 is frozen.