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&#39;m considering proposing a feature called &quot;=
Datafile String Literals&quot;:</div><div><br></div><div>A datafile string =
literal of the form:</div><div><br></div>=C2=A0 =C2=A0 D&quot;foo&quot;<div=
><br></div><div>is &quot;conceptually&quot; equivalent to the following:</d=
iv><div><br></div><div>=C2=A0 =C2=A0 R&quot;delim(</div><div>=C2=A0 =C2=A0 =
#include &quot;foo&quot;</div><div>=C2=A0 =C2=A0 )delim&quot;</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&quot;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&quot; 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">&lt;<a href=
=3D"mailto:ville.voutilainen@gmail.com" target=3D"_blank">ville.voutilainen=
@gmail.com</a>&gt;</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=
 &lt;<a href=3D"mailto:andrewtomazos@gmail.com">andrewtomazos@gmail.com</a>=
&gt; wrote:<br>
&gt; I&#39;m considering proposing a feature called &quot;Datafile String L=
iterals&quot;:<br>
&gt;<br>
&gt; A datafile string literal of the form:<br>
&gt;<br>
&gt;=C2=A0 =C2=A0 =C2=A0D&quot;foo&quot;<br>
&gt;<br>
&gt; is &quot;conceptually&quot; equivalent to the following:<br>
&gt;<br>
&gt;=C2=A0 =C2=A0 =C2=A0R&quot;delim(<br>
&gt;=C2=A0 =C2=A0 =C2=A0#include &quot;foo&quot;<br>
&gt;=C2=A0 =C2=A0 =C2=A0)delim&quot;<br>
&gt;<br>
&gt; Where delim is some sequence of characters that does not appear in the=
 file<br>
&gt; foo, and the #include preprocessing directive is sequenced before the =
raw<br>
&gt; file string is interpreted. (and of course there is no leading or trai=
ling<br>
&gt; newline added).<br>
&gt;<br>
&gt; That is, D&quot;foo&quot; is a string literal that contains the conten=
ts (verbatim) of<br>
&gt; the data file foo.=C2=A0 The usual #include lookup rules are using to =
find the<br>
&gt; file foo.<br>
&gt;<br>
&gt; 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&#39;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&quot; 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--

.