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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 8 21:22:26 PST 2014


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


Andrei Alexandrescu <andrei at erdani.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrei at erdani.com
         Resolution|                            |WONTFIX


--- Comment #14 from Andrei Alexandrescu <andrei at erdani.com> 2014-03-08 21:22:18 PST ---
I agree it's an exception that "str" converts to const(char)* but not
subsequently to const(void)*. However, the conversion to char* is already a
known concession for the sake of C string APIs. I don't think we need to go all
the way into the rabbit hole. (Also the example is obscure.)

@yebblies sorry I'll close this and the pull request. Feel free to reopen if
you feel strongly about this.

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