== Quote from Steven Schveighoffer ([email protected])'s articleI was wrong, I looked through the runtime and did not find such afunction.std.string has a repeat() function. Try: import std.string; void main() { string divider = repeat("-", 5); writeln(divider); }
It doesn't do the right thing. It allocates, then initializes, resulting in a double-initialization.
-Steve
