[Issue 6032] wstring literals cannot be implicitly converted to const(wchar)*
https://issues.dlang.org/show_bug.cgi?id=6032 --- Comment #8 from Dlang Bot --- dlang/dlang.org pull request #3662 "[spec] Improve string literal docs" was merged into master: - 0ca0e63d81fc14b1610625693ee6aa9fd475f6c1 by Nick Treleaven: Document that StringPostfix disables implicit conversions Part of Issue 6032 - wstring literals cannot be implicitly converted to const(wchar)* https://github.com/dlang/dlang.org/pull/3662 --
[Issue 6032] wstring literals cannot be implicitly converted to const(wchar)*
https://issues.dlang.org/show_bug.cgi?id=6032 Nick Treleaven changed: What|Removed |Added CC||n...@geany.org --- Comment #7 from Nick Treleaven --- Changed the pull not to close this issue. --
[Issue 6032] wstring literals cannot be implicitly converted to const(wchar)*
https://issues.dlang.org/show_bug.cgi?id=6032 Dlang Bot changed: What|Removed |Added Keywords||pull --- Comment #6 from Dlang Bot --- @ntrel updated dlang/dlang.org pull request #3662 "[spec] Improve string literal docs" fixing this issue: - Fix Issue 6032 - wstring literals cannot be implicitly converted to const(wchar)* Until this works, it should not be documented. https://github.com/dlang/dlang.org/pull/3662 --
[Issue 6032] wstring literals cannot be implicitly converted to const(wchar)*
https://issues.dlang.org/show_bug.cgi?id=6032 Iain Buclaw changed: What|Removed |Added Priority|P2 |P3 --
[Issue 6032] wstring literals cannot be implicitly converted to const(wchar)*
https://issues.dlang.org/show_bug.cgi?id=6032 Steven Schveighoffer schvei...@yahoo.com changed: What|Removed |Added CC||schvei...@yahoo.com --- Comment #5 from Steven Schveighoffer schvei...@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. --
[Issue 6032] wstring literals cannot be implicitly converted to const(wchar)*
https://issues.dlang.org/show_bug.cgi?id=6032 Elie Morisse syniu...@gmail.com changed: What|Removed |Added CC||syniu...@gmail.com --- Comment #3 from Elie Morisse syniu...@gmail.com --- const(char)* s = fooc; // fails too Any rationale behind this? --
[Issue 6032] wstring literals cannot be implicitly converted to const(wchar)*
https://issues.dlang.org/show_bug.cgi?id=6032 yebblies yebbl...@gmail.com changed: What|Removed |Added CC||yebbl...@gmail.com --- Comment #4 from yebblies yebbl...@gmail.com --- (In reply to Elie Morisse from comment #3) const(char)* s = fooc; // fails too Any rationale behind this? Essentially that 'c' gives it an explicit type, so conversions are disabled. --
[Issue 6032] wstring literals cannot be implicitly converted to const(wchar)*
http://d.puremagic.com/issues/show_bug.cgi?id=6032 kenn...@gmail.com changed: What|Removed |Added CC||kenn...@gmail.com --- Comment #1 from kenn...@gmail.com 2011-05-18 21:07:53 PDT --- You could use the postfix-less version. A string literal is convertible to immutable(anychar)[] and immutable(anychar)*. (That should apply to ...w though). const(wchar)* wcptr = foo; -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 6032] wstring literals cannot be implicitly converted to const(wchar)*
http://d.puremagic.com/issues/show_bug.cgi?id=6032 --- Comment #2 from Andrej Mitrovic andrej.mitrov...@gmail.com 2011-05-18 21:38:15 PDT --- I forgot about that, thanks for the reminder. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---