Thread overview
[Issue 10123] Can't subtract positive number from length of array of struct with disabled default construction
Mar 30, 2019
Basile-z
Mar 21, 2020
Basile-z
Nov 29, 2022
RazvanN
March 30, 2019
https://issues.dlang.org/show_bug.cgi?id=10123

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |b2.temp@gmx.com

--- Comment #2 from Basile-z <b2.temp@gmx.com> ---
I don't think this is a valid issue. When an array is shrink, its memory might be copied to another location. a struct with self reference would then become unsafe.

You cannot speculate on the implementation details of the GC allocator.

--
March 21, 2020
https://issues.dlang.org/show_bug.cgi?id=10123

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|b2.temp@gmx.com             |

--
August 29, 2020
https://issues.dlang.org/show_bug.cgi?id=10123
Issue 10123 depends on issue 10124, which changed state.

Issue 10124 Summary: Array length increases on subtraction of a big number instead of throwing RangeError https://issues.dlang.org/show_bug.cgi?id=10124

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX

--
November 29, 2022
https://issues.dlang.org/show_bug.cgi?id=10123

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305@gmail.com
         Resolution|---                         |INVALID

--