Is this all correct?

static import core.stdc.stdio;
static import std.stdio;
void main() {
    std.stdio.fprintf(core.stdc.stdio.stderr, "Error\n"); // OK
    std.stdio.fprintf(std.stdio.stderr, "Error\n"); // line 5, error
}

The latest DMD gives:

test.d(5): Error: function core.stdc.stdio.fprintf (shared(_iobuf)* stream, in 
const(char*) format,...) is not callable using argument types (File,string)
test.d(5): Error: cannot implicitly convert expression (stderr) of type File to 
shared(_iobuf)*

Bye,
bearophile

Reply via email to