[Issue 11837] String literals should convert to const(void)*

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Dec 28 12:54:47 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=11837


monarchdodra at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |monarchdodra at gmail.com


--- Comment #3 from monarchdodra at gmail.com 2013-12-28 12:54:42 PST ---
(In reply to comment #2)
> Code like this will compile:
> 
> memcmp(ptr, "abc", 3);

What's wrong with `memcmp(ptr, "abc".ptr, 3)`?

I seem to remember there is an issue with null termination in this kind of
useage?

-- 
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