string to thread

monarch_dodra monarchdodra at gmail.com
Sat Sep 8 02:01:50 PDT 2012


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 in D. Did I just miss it?

How is a user supposed to parse a string in D?

I thought I was supposed to use "formattedRead", but was told 
that was actually more meant for library writers. Is there an 
alternative? Just trying to learn.


More information about the Digitalmars-d-learn mailing list