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

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Apr 21 19:38:36 PDT 2015


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

yebblies <yebblies at gmail.com> changed:

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

--- Comment #4 from yebblies <yebblies at gmail.com> ---
(In reply to Elie Morisse from comment #3)
>    const(char)* s = "foo"c; // fails too 
> 
> Any rationale behind this?

Essentially that 'c' gives it an explicit type, so conversions are disabled.

--


More information about the Digitalmars-d-bugs mailing list