Is there any update on this? This question of the distinction
between reading/writing to a file stream vs to a string seems
recurrent.
I am interested in writing to a string and am wondering if there
is a reason for having to use explicitly the convenience
functions std.conv.text() (or to!str
On Sunday, September 09, 2012 14:13:26 monarch_dodra wrote:
> Okay, that makes a sense to me. In c++, the paradigm is:
> *Streams for formating.
> *Iterators for algorithms.
>
> Two paradigms => object to go from string(pointer/iterator) to
> stream.
>
> And you are telling me that in D, everythi
On Sunday, 9 September 2012 at 10:36:14 UTC, Jonathan M Davis
wrote:
On Sunday, September 09, 2012 12:21:59 monarch_dodra wrote:
Hum, parse. Looks useful. No need to create a temp stream like
in
C++ then. Good. Thanks for the info.
That said, is the "abstraction" itself available? Say *someone
On Sunday, September 09, 2012 12:21:59 monarch_dodra wrote:
> Hum, parse. Looks useful. No need to create a temp stream like in
> C++ then. Good. Thanks for the info.
>
> That said, is the "abstraction" itself available? Say *someone*
> wrote an xml parser, and the public interface expects to oper
On Saturday, 8 September 2012 at 09:10:30 UTC, Jonathan M Davis
wrote:
If you were to operate on a string in a manner similar to a
stream, you'd be
operating on it as a range, and there are a lot of range-based
functions in
Phobos. But if you want to specifically parse a range of
characters,
On Saturday, September 08, 2012 11:01:50 monarch_dodra wrote:
> In C++ (not C), when you wanted to parse a string, you were
> supposed to put the string inside a stream (std::stringstream),
> and then parse that new stream stream.
>
> As a general rule, stringstream also allowed abstracting a stri
In C++ (not C), when you wanted to parse a string, you were
supposed to put the string inside a stream (std::stringstream),
and then parse that new stream stream.
As a general rule, stringstream also allowed abstracting a string
into a more generic stream.
I did not find anything equivalent