[Issue 3846] Unexpected BufferedFile output

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Oct 29 17:34:01 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=3846



--- Comment #1 from bearophile_hugs at eml.cc 2010-10-29 17:33:10 PDT ---
The second problem is now fixed, this code compiles, see bug 2718 :


import std.stream: BufferedFile, FileMode;
import std.conv: to;
void main() {
    auto fout = new BufferedFile("foo.txt", FileMode.Out);
    int x = 10;
    fout.write(to!string(x) ~ "\n");
    fout.close();
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list