This is the thing that I want to do:
struct example{ const string str; //this(string str){ this.str = str; } string toString(){ return this.str; } } public void main(){ import std.stdio; import std.string; example[] parts = [example("hello"), example("world")]; writeln(std.string.join(parts, " ")); }