Proposal of File String Literals - Google Groups

0 downloads 125 Views 148KB Size Report
string literal, except the content of the string is stored in a separate dedicated source file, rather than inline in th
Proposal of File String Literals    Document No.: Dnnnn  Project: Programming Language C++  Author: Andrew Tomazos   Date: 2016­04­21 

Summary  We propose a new kind of string literal called a ​ file string literal.​   A file string literal is like a raw  string literal, except the content of the string is stored in a separate dedicated source file, rather  than in­line in the host source file.  The path of the file is specified, like an included header, as  part of the file string literal.  The content of the source file becomes the content of the string  literal, verbatim. 

Example  The content of datafile.txt:       The quick brown fox jumps over the lazy dog.    The content of main.cc:       #include      int main() {       std::cout