Escaping control in formatting

Denis Shelomovskij verylonglogin.reg at gmail.com
Mon Apr 23 09:14:16 PDT 2012


23.04.2012 18:54, kenji hara написал:
> Please give us use cases. I cannot imagine why you want to
> change/remove quotations but keep escaped contents.

Sorry, I should mention that !' and !" are optional and aren't commonly
used, and all !?* are very optional and are here just for completeness
(IMHO).

An example is generating a complicated string for C/C++:
---
myCppFile.writefln(`tmp = "%!?"s, and %!?"s, and even %!?"s";`,
                    str1, str2, str3)
---

-- 
Денис В. Шеломовский
Denis V. Shelomovskij


More information about the Digitalmars-d mailing list