Thread overview
[Issue 11900] Implicit cast of string literal -> char* causing ambiguous call
Feb 01, 2018
Simen Kjaeraas
May 26, 2019
Nicholas Wilson
Dec 17, 2022
Iain Buclaw
Jul 14, 2023
Nick Treleaven
Jul 14, 2023
Nick Treleaven
February 01, 2018
https://issues.dlang.org/show_bug.cgi?id=11900

Simen Kjaeraas <simen.kjaras@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code@benjamin-thaut.de

--- Comment #6 from Simen Kjaeraas <simen.kjaras@gmail.com> ---
*** Issue 15529 has been marked as a duplicate of this issue. ***

--
May 26, 2019
https://issues.dlang.org/show_bug.cgi?id=11900

Nicholas Wilson <iamthewilsonator@hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |iamthewilsonator@hotmail.co
                   |                            |m

--- Comment #7 from Nicholas Wilson <iamthewilsonator@hotmail.com> ---
One way to work around this is to declare an overload that takes a string (which the literals will prefer) that simple forwards to the const[] case.

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=11900

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P3

--
July 14, 2023
https://issues.dlang.org/show_bug.cgi?id=11900

Nick Treleaven <nick@geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nick@geany.org
           Severity|normal                      |enhancement

--- Comment #8 from Nick Treleaven <nick@geany.org> ---
The spec does say:
> String literals can implicitly convert to any of the following types, *they have equal weight*
https://dlang.org/spec/expression.html#string_literals

So changing this to an enhancement.

--
July 14, 2023
https://issues.dlang.org/show_bug.cgi?id=11900

Nick Treleaven <nick@geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dmitry.olsh@gmail.com

--- Comment #9 from Nick Treleaven <nick@geany.org> ---
*** Issue 18875 has been marked as a duplicate of this issue. ***

--