Jack Applegame:
It is something wrong with ElementType template.char arr[4] = [1,2,3,0]; writeln(ElementType!(typeof(arr[])).stringof); // writes dchar
Try also ForeachType: http://dlang.org/phobos/std_traits.html#.ForeachTypeI agree it's often a pain in the ass, but technically it's not a bug, it's working as designed.
Bye, bearophile
