I'm not sure what I'm doing wrong... the following code prints
nothing:
void main()
{
import std.stdio, std.range;
string str = asdf;
auto sink = new dchar[](str.length);
auto fun = (dchar c) { sink.put(c); };
foreach (dchar c; str)
{
fun(c);
}
On 03/24/2014 07:42 PM, Meta wrote:
I'm not sure what I'm doing wrong... the following code prints nothing:
void main()
{
import std.stdio, std.range;
string str = asdf;
auto sink = new dchar[](str.length);
auto fun = (dchar c) { sink.put(c); };
foreach (dchar