[Issue 1597] It is not possible to specialize template on associative array.

Marcin Kuszczak aarti_nospam at please_interia.pl
Fri Oct 19 15:51:11 PDT 2007


> The second suggestion:
> 
> void parse(T : E[])() {}
> 
> won't work because it's unclear whether E is a newly-introduced symbol
> ("must be inferred") or a previously-defined symbol ("must be E that I
> defined in this module").

Probably your are right :-) That was more pointing problem, that proposing
real solution. Maybe some kind of suggestion.

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[].

PS. It seems that best way to talk with Andrei is to submit bug :D



More information about the Digitalmars-d-bugs mailing list