[Issue 10123] Can't subtract positive number from length of array of struct with disabled default construction
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Mar 30 12:12:56 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=10123
Basile-z <b2.temp at gmx.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |b2.temp at gmx.com
--- Comment #2 from Basile-z <b2.temp at 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.
--
More information about the Digitalmars-d-bugs
mailing list