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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from yebblies <[email protected]> 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: -------