[Issue 24619] New: [DIP1000] Allow pointer slicing for slices of length 0 or 1

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jun 20 13:48:45 UTC 2024


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

          Issue ID: 24619
           Summary: [DIP1000] Allow pointer slicing for slices of length 0
                    or 1
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: qs.il.paperinik at gmail.com

Allow `(&x)[0 .. 1]` (and `(&x)[0 .. 0]`) in `@safe` code.

--


More information about the Digitalmars-d-bugs mailing list