June 24, 2023
https://issues.dlang.org/show_bug.cgi?id=24012

          Issue ID: 24012
           Summary: [spec/cpp_interface] _d_dynamicArray generated by -HC
                    not documented
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dlang.org
          Assignee: nobody@puremagic.com
          Reporter: nick@geany.org

extern (C) const(char)[] slice;

Note extern (C), not extern (C++) - see issue 18716.

dmd -HC generates the following C++ declaration:

extern "C" _d_dynamicArray< const char > slice;

PR incoming.

--