[Issue 22425] New: Documentation on implicit conversion of arrays is incomplete

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Oct 18 22:42:02 UTC 2021


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

          Issue ID: 22425
           Summary: Documentation on implicit conversion of arrays is
                    incomplete
           Product: D
           Version: D2
          Hardware: x86_64
                OS: FreeBSD
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dlang.org
          Assignee: nobody at puremagic.com
          Reporter: donaldcallen1942 at icloud.com

Strings and string literals are arrays and Section 12.17 of the Language
Reference purports to cover the implicit type conversions among the various
array types. But it currently leaves out the special case of the treatment of
string literals as described in Section 10.23.7 and should not, in my opinion.
This could be fixed with a link in Section 12.17 to Section 10.23.7. My
personal preference would be that the material in 10.23.7 be move to 12.17,
perhaps with a link the other way.

--


More information about the Digitalmars-d-bugs mailing list