On Tuesday, 29 March 2016 at 18:29:27 UTC, Ali Çehreli wrote:
So, dict is a template value parameter of type T[string]. I don't think you can use an associative array as a template value parameter. (Can we?)

Found this in D language reference:
https://dlang.org/spec/template.html#template_value_parameter
Template value arguments can be integer values, floating point values, nulls, string values, array literals of template value arguments, associative array literals of template value arguments...

So yes, associative arrays as template parameters are supposed to work.


Reply via email to