Hi,

Is it possible to pass a string array to a string mixin e.g

template GenSomething(string foo, string[] bar){
  some_kind_of_foreach(br: bar) {
    const char[] foo ~ br ~ ";\n";
  }
}

and call:

mixin(GenSomething!("A", ["B", "C", "D"]));

would generate:

A.B;
A.C;
A.D;

Regards,

-=mike=-

Reply via email to