Bug 1739 – cannot cast "r" char[1u] to string implicitly
Status
RESOLVED
Resolution
INVALID
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2007-12-17T21:13:00Z
Last change time
2015-06-09T01:14:23Z
Assigned to
bugzilla
Creator
davidl
Comments
Comment #0 by davidl — 2007-12-17T21:13:25Z
stdio.d line 776:
FILE* fopen(string name, string mode = cast(string)"r")
{
return std.c.stdio.fopen(toStringz(name), toStringz(mode));
}
I added cast(string), and the problem went away.