Escaping control in formatting (again)
Denis Shelomovskij
verylonglogin.reg at gmail.com
Mon May 7 05:22:17 PDT 2012
07.05.2012 11:39, kenji hara написал:
> In prev thread, I have posted a proposal, but it didn't posted to
> newsgroup, I don't know why.
> I re-post my proposal.
>
> ----
> If the leading compound format specifier has a '-' flag, like "%-( ...
> %)", it disables auto-escaping for the elements formatting.
>
> writefln(">%(%s, %)<", ["hello", "world"]); // output:>"hello", "world"<
> writefln(">%-(%s, %)<", ["hello", "world"]); // output:>hello, world<
>
> You can format the elements as like outside of compound format specifiers.
> How about you?
This is enough for my own needs. Thanks! Who is to implement this?
Looks line nobody needs features from my original proposal so they
shouldn't be discussed further (unless will become needed).
--
Денис В. Шеломовский
Denis V. Shelomovskij
More information about the Digitalmars-d
mailing list