December 18, 2007 [Issue 1739] New: cannot cast "r" char[1u] to string implicitly | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=1739 Summary: cannot cast "r" char[1u] to string implicitly Product: D Version: 2.008 Platform: PC OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: bugzilla@digitalmars.com ReportedBy: davidl@126.com 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. -- |
December 18, 2007 [Issue 1739] cannot cast "r" char[1u] to string implicitly | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=1739 davidl@126.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID ------- Comment #1 from davidl@126.com 2007-12-17 21:20 ------- oh it's because i'm using a wrong phobos.. -- |
Copyright © 1999-2021 by the D Language Foundation