[Issue 11837] New: String literals should convert to const(void)*
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Dec 28 08:08:34 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11837
Summary: String literals should convert to const(void)*
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: yebblies at gmail.com
--- Comment #0 from yebblies <yebblies at gmail.com> 2013-12-29 03:08:31 EST ---
Code like this is perfectly valid:
memcmp(ptr, "abc");
But it fails in D because although string literals convert to const(char)*, and
const(char)* converts to const(void)*, string literals do not convert to
const(void)*
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list