[Issue 24226] operator `~=` appears to lead to useless bound checks
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Nov 9 09:51:19 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=24226
RazvanN <razvan.nitu1305 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |razvan.nitu1305 at gmail.com
Resolution|--- |INVALID
--- Comment #2 from RazvanN <razvan.nitu1305 at gmail.com> ---
The hook itself uses some arrays internally to access the data, as can be seen
from the source code:
https://github.com/dlang/dmd/blob/master/druntime/src/core/internal/array/appending.d#L89
. Those accesses are protected by array bounds check. No bug here.
--
More information about the Digitalmars-d-bugs
mailing list