'pp' for D?

monarch_dodra monarchdodra at gmail.com
Tue Oct 1 03:42:39 PDT 2013


On Tuesday, 1 October 2013 at 09:21:44 UTC, John Colvin wrote:
> On Monday, 30 September 2013 at 21:24:28 UTC, linkrope wrote:
>> But putting quotes around a string value is obviously not 
>> enough.
>> What if the string contains a quote? "hell\"o" would become 
>> `"hell"o"`!
>
> Would would you want it be become?

Don't understand. Did you mean "Would would you want it be 
become"?

I think he meant that he *wanted* it to become "hell\"o". I said: 
"why don't you just print `"%s"`, to which he retorted by saying 
it would choke on his input of `hell"o`, which would print:
"hell"o"
Which would be wrong.


More information about the Digitalmars-d-learn mailing list