Why is this code returning the wrong type?
Gary Willoughby
dev at kalekold.net
Thu May 23 12:45:37 PDT 2013
Hmmm... Following your example i'm still having problems
compiling this simple snippet:
import std.stdio;
class Example
{
private FILE _file;
public this(string file)
{
this._file = File(file, "r");
}
}
Error:
test.d(9): Error: cannot implicitly convert expression ((File
__ctmp1220 = 0;
, __ctmp1220).this(file, "r")) of type File to shared(_iobuf)
More information about the Digitalmars-d-learn
mailing list