[Issue 6032] wstring literals cannot be implicitly converted to const(wchar)*

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Apr 22 09:22:38 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=6032

Steven Schveighoffer <schveiguy at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schveiguy at yahoo.com

--- Comment #5 from Steven Schveighoffer <schveiguy at yahoo.com> ---
So, should this be closed as WONTFIX?

I kind of agree with OP that a specifically typed string is not really any
different than an ambiguous one. In fact, the compiler still adds the trailing
null character even if you specify 'w'.

The one possibility I see that would be an issue is some type of overloading
decision where you want to specifically choose the const(wchar)* version.
Admittedly, this is very unlikely to occur in the wild.

--


More information about the Digitalmars-d-bugs mailing list