'pp' for D?

monarch_dodra monarchdodra at gmail.com
Sun Sep 29 11:13:57 PDT 2013


On Sunday, 29 September 2013 at 14:31:15 UTC, linkrope wrote:
> As a workaround, I put the value into an array to make use of 
> the "undocumented" function formatElement:
>
>     "%(%s%)".format([value])

That seems excessive. What happened to format(`"%s"`, s) or 
format("\"%s\"", s) or text('"', s, '"')?

> Where does Phobos hide the function I'm looking for?

I don't have a solution that's "convenient" enough to satisfy you.


More information about the Digitalmars-d-learn mailing list