On Thursday, 4 September 2014 at 19:24:00 UTC, Nordlöw wrote:
string t1; t1 ~= '*'.repeat(n).array; string t2; t2 ~= "*".replicate(n);
After having read http://dlang.org/phobos/std_array.html#.replicate
I came to the conclusion that the lazy std.range:repeat is preferred.
I'm still a bit confused about the fact that -vgc gives no warnings about GC-allocations, though.