开发者

What is the '\?' Escape Sequence in D?

开发者_运维问答What is the \? string escape sequence in D?


It's just to escape ?, a literal question mark.

There really is no reason for it to be in D, but it existed in C and C++ in order to avoid the question mark being interpreted as a Trigraph. D doesn't have Trigraphs, so its inclusion must simply be for some added backwards compatibility with C and C++.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜