fixed system.delete (#18507)

This commit is contained in:
Andreas Rumpf 2021-07-18 15:16:26 +02:00 • committed by GitHub
commit 99c4b69097
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 26 additions and 12 deletions

View file

@ -4,7 +4,18 @@
## Changes affecting backward compatibility
- Deprecated `std/mersenne`
- Deprecated `std/mersenne`.
- `system.delete` had a most surprising behavior when the index passed to it was out of
bounds (it would delete the last entry then). Compile with `-d:nimStrictDelete` so
that an index error is produced instead. But be aware that your code might depend on
this quirky behavior so a review process is required on your part before you can
use `-d:nimStrictDelete`. To make this review easier, use the `-d:nimAuditDelete`
switch, it pretends that `system.delete` is deprecated so that it is easier to see
where it was used in your code.
`-d:nimStrictDelete` will become the default in upcoming versions.
- `cuchar` is now deprecated as it aliased `char` where arguably it should have aliased `uint8`.
Please use `char` or `uint8` instead.