Escaping control in formatting (again)

kenji hara k.hara.pg at gmail.com
Mon May 7 18:11:03 PDT 2012


Posted pull request:
https://github.com/D-Programming-Language/phobos/pull/573

Kenji Hara

2012/5/7 Denis Shelomovskij <verylonglogin.reg at gmail.com>:
> 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