printing array of strings with writefln?
Artem Tarasov via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Nov 16 06:16:53 PST 2014
writefln("%(%s-%)", ["a", "b", "c"]) doesn't print the intended
a-b-c but surrounds each string with double quotes - "a"-"b"-"c",
which I find inconsistent with the fact that writefln("%s", "a
string") prints the string without any quotes.
How do I get the desired behaviour using just the format string?
More information about the Digitalmars-d-learn
mailing list