[Issue 24876] New: Undocumented cast from slice to static array

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Nov 24 18:40:57 UTC 2024


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

          Issue ID: 24876
           Summary: Undocumented cast from slice to static array
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dlang.org
          Assignee: nobody at puremagic.com
          Reporter: nick at geany.org

E.g.:

        void f(int[] b)
        {
            char[4] a;
            a = cast(char[4]) b[0..1]; // OK
            const i = 1;
            a = cast(char[4]) b[i..2]; // OK
        }

PR incoming.

--


More information about the Digitalmars-d-bugs mailing list