Thread overview |
---|
January 23, 2009 [Issue 2606] New: string literals unnecessarily prone to wide conversion | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=2606 Summary: string literals unnecessarily prone to wide conversion Product: D Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: andrei@metalanguage.com void f(const(char)[] s) {} void f(const(dchar)[] s) {} void main() { f("abc"); auto a = "abc"; f(a); } The first call issues an ambiguity. This is inconsistent with the second call through a named variable. String literals should receive an implicit preferred type and that should not make calls ambiguous. -- |
April 27, 2010 [Issue 2606] string literals unnecessarily prone to wide conversion | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2606 Don <clugdbug@yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |clugdbug@yahoo.com.au --- Comment #1 from Don <clugdbug@yahoo.com.au> 2010-04-27 11:31:01 PDT --- I think this is the same as bug 2367 (although with a stronger example). -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 15, 2011 [Issue 2606] string literals unnecessarily prone to wide conversion | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2606 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |yebblies@gmail.com Resolution| |DUPLICATE --- Comment #2 from yebblies <yebblies@gmail.com> 2011-06-15 07:51:48 PDT --- *** This issue has been marked as a duplicate of issue 2367 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation