|Posted by Paul Backus|
in reply to novice3
Posted in reply to novice3
On Wednesday, 7 April 2021 at 13:31:59 UTC, novice3 wrote:
there is extra quotes, wich not present in firmat specifier.
is this bug, or i should change something in my code?
This is actually an intentional feature (albeit kind of a stupid one). From the documentation:
Inside a compound format specifier, strings and characters are escaped automatically. To avoid this behavior, add '-' flag to "%(".
So, you should change your code to
writefln("%-(%s, %)", s);