doesn't work std.cstream.din.readf() with wchar and dchar
canalpau
canalpayciftci at gmail.com
Fri Feb 11 06:31:39 PST 2011
doesn't work std.cstream.din.readf() with wchar and dchar. But it works:
import std.cstream;
void main()
{
wchar[] w_char = "e"w.dup;
din.readf(&w_char);
dchar[] d_char = "e"w.dup;
din.readf(&d_char);
}
But it doesn't work:
import std.cstream;
void main()
{
wchar w_char = 'e';
din.readf(&w_char);
wchar d_char = 'e';
din.readf(&d_char);
}
Please note that this works:
import std.cstream;
void main()
{
char _char = 'e';
din.readf(&_char);
}
Is that intended, or a bug?
More information about the Digitalmars-d-learn
mailing list