[Issue 1597] It is not possible to specialize template on associative array.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Oct 19 16:19:51 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1597
------- Comment #5 from aarti at interia.pl 2007-10-19 18:19 -------
(In reply to comment #2)
But in other hand probably you will admit that current solution:
void parse(T : T[])
is even worse?
Inside function you get something completely different than you put when
instantiating template. Inside function T means element of array, while it
is instantiated as T[].
So maybe:
void parse(T : auto E[]) {} and
void parse(T : auto V[K]) {}
to say that these symbols are inferred?
--
More information about the Digitalmars-d-bugs
mailing list