core.stdc.stdio.stderr != std.stdio.stderr ?
bearophile
bearophileHUGS at lycos.com
Fri Aug 19 07:12:11 PDT 2011
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
More information about the Digitalmars-d-learn
mailing list