Topic: Datafile String Literals
Author: Andrew Tomazos <andrewtomazos@gmail.com>
Date: Tue, 3 Nov 2015 14:21:41 +0100
Raw View
--001a114444ae3be4460523a2c6a2
Content-Type: text/plain; charset=UTF-8
I'm considering proposing a feature called "Datafile String Literals":
A datafile string literal of the form:
D"foo"
is "conceptually" equivalent to the following:
R"delim(
#include "foo"
)delim"
Where delim is some sequence of characters that does not appear in the file
foo, and the #include preprocessing directive is sequenced before the raw
file string is interpreted. (and of course there is no leading or trailing
newline added).
That is, D"foo" is a string literal that contains the contents (verbatim)
of the data file foo. The usual #include lookup rules are using to find
the file foo.
Thoughts? Interest?
--
---
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.
--001a114444ae3be4460523a2c6a2
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div>I'm considering proposing a feature called "=
Datafile String Literals":</div><div><br></div><div>A datafile string =
literal of the form:</div><div><br></div>=C2=A0 =C2=A0 D"foo"<div=
><br></div><div>is "conceptually" equivalent to the following:</d=
iv><div><br></div><div>=C2=A0 =C2=A0 R"delim(</div><div>=C2=A0 =C2=A0 =
#include "foo"</div><div>=C2=A0 =C2=A0 )delim"</div><div><br=
></div><div>Where delim is some sequence of characters that does not appear=
in the file foo, and the #include preprocessing directive is sequenced bef=
ore the raw file string is interpreted. (and of course there is no leading =
or trailing newline added).</div><div><br></div><div>That is, D"foo&qu=
ot; is a string literal that contains the contents (verbatim) of the data f=
ile foo.=C2=A0 The usual #include lookup rules are using to find the file f=
oo.</div><div><br></div><div>Thoughts?=C2=A0 Interest?<br></div><div><br></=
div></div>
<p></p>
-- <br />
<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />
--001a114444ae3be4460523a2c6a2--
.
Author: Ville Voutilainen <ville.voutilainen@gmail.com>
Date: Tue, 3 Nov 2015 15:41:02 +0200
Raw View
On 3 November 2015 at 15:21, Andrew Tomazos <andrewtomazos@gmail.com> wrote:
> I'm considering proposing a feature called "Datafile String Literals":
>
> A datafile string literal of the form:
>
> D"foo"
>
> is "conceptually" equivalent to the following:
>
> R"delim(
> #include "foo"
> )delim"
>
> Where delim is some sequence of characters that does not appear in the file
> foo, and the #include preprocessing directive is sequenced before the raw
> file string is interpreted. (and of course there is no leading or trailing
> newline added).
>
> That is, D"foo" is a string literal that contains the contents (verbatim) of
> the data file foo. The usual #include lookup rules are using to find the
> file foo.
>
> Thoughts? Interest?
Sounds familiar,
https://groups.google.com/a/isocpp.org/d/msg/std-proposals/b6ncBojU8wI/blx1GlLqUAUJ
--
---
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.
.
Author: Andrew Tomazos <andrewtomazos@gmail.com>
Date: Tue, 3 Nov 2015 15:12:22 +0100
Raw View
--001a114974208ce20e0523a37be0
Content-Type: text/plain; charset=UTF-8
On Tue, Nov 3, 2015 at 2:41 PM, Ville Voutilainen <
ville.voutilainen@gmail.com> wrote:
> On 3 November 2015 at 15:21, Andrew Tomazos <andrewtomazos@gmail.com>
> wrote:
> > I'm considering proposing a feature called "Datafile String Literals":
> >
> > A datafile string literal of the form:
> >
> > D"foo"
> >
> > is "conceptually" equivalent to the following:
> >
> > R"delim(
> > #include "foo"
> > )delim"
> >
> > Where delim is some sequence of characters that does not appear in the
> file
> > foo, and the #include preprocessing directive is sequenced before the raw
> > file string is interpreted. (and of course there is no leading or
> trailing
> > newline added).
> >
> > That is, D"foo" is a string literal that contains the contents
> (verbatim) of
> > the data file foo. The usual #include lookup rules are using to find the
> > file foo.
> >
> > Thoughts? Interest?
>
> Sounds familiar,
>
> https://groups.google.com/a/isocpp.org/d/msg/std-proposals/b6ncBojU8wI/blx1GlLqUAUJ
Yup, that's the same thing. Cheers Ville.
--
---
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.
--001a114974208ce20e0523a37be0
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On T=
ue, Nov 3, 2015 at 2:41 PM, Ville Voutilainen <span dir=3D"ltr"><<a href=
=3D"mailto:ville.voutilainen@gmail.com" target=3D"_blank">ville.voutilainen=
@gmail.com</a>></span> wrote:<br><blockquote class=3D"gmail_quote" style=
=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div cla=
ss=3D"HOEnZb"><div class=3D"h5">On 3 November 2015 at 15:21, Andrew Tomazos=
<<a href=3D"mailto:andrewtomazos@gmail.com">andrewtomazos@gmail.com</a>=
> wrote:<br>
> I'm considering proposing a feature called "Datafile String L=
iterals":<br>
><br>
> A datafile string literal of the form:<br>
><br>
>=C2=A0 =C2=A0 =C2=A0D"foo"<br>
><br>
> is "conceptually" equivalent to the following:<br>
><br>
>=C2=A0 =C2=A0 =C2=A0R"delim(<br>
>=C2=A0 =C2=A0 =C2=A0#include "foo"<br>
>=C2=A0 =C2=A0 =C2=A0)delim"<br>
><br>
> Where delim is some sequence of characters that does not appear in the=
file<br>
> foo, and the #include preprocessing directive is sequenced before the =
raw<br>
> file string is interpreted. (and of course there is no leading or trai=
ling<br>
> newline added).<br>
><br>
> That is, D"foo" is a string literal that contains the conten=
ts (verbatim) of<br>
> the data file foo.=C2=A0 The usual #include lookup rules are using to =
find the<br>
> file foo.<br>
><br>
> Thoughts?=C2=A0 Interest?<br><br>
</div></div>Sounds familiar,<br>
<a href=3D"https://groups.google.com/a/isocpp.org/d/msg/std-proposals/b6ncB=
ojU8wI/blx1GlLqUAUJ" rel=3D"noreferrer" target=3D"_blank">https://groups.go=
ogle.com/a/isocpp.org/d/msg/std-proposals/b6ncBojU8wI/blx1GlLqUAUJ</a></blo=
ckquote><div><br></div><div>Yup, that's the same thing.=C2=A0 Cheers Vi=
lle.</div></div><br></div></div>
<p></p>
-- <br />
<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />
--001a114974208ce20e0523a37be0--
.