diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2023-04-26 22:32:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-26 22:32:10 +0200 |
commit | 220b45048983998675df761d4f33cd31128f10d5 (patch) | |
tree | ddd2f63e18137db689f88ee814d6d2cf209ac01d /changelogs | |
parent | 8f79a124c96947283deecb137b7849557ae47f2f (diff) | |
download | Nim-220b45048983998675df761d4f33cd31128f10d5.tar.gz |
fixes #21245; warn about destructors that can raise (#21726)
* fixes #21245; warn about destructors that can raise * doc update * progress * typo
Diffstat (limited to 'changelogs')
-rw-r--r-- | changelogs/changelog_2_0_0.md | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/changelogs/changelog_2_0_0.md b/changelogs/changelog_2_0_0.md index 17f0fcfc4..8a5019731 100644 --- a/changelogs/changelog_2_0_0.md +++ b/changelogs/changelog_2_0_0.md @@ -179,7 +179,7 @@ for 64-bit integer types (`int64` and `uint64`) by default. As this affects JS code generation, code using these types to interface with the JS backend may need to be updated. Note that `int` and `uint` are not affected. - + For compatibility with [platforms that do not support BigInt](https://caniuse.com/bigint) and in the case of potential bugs with the new implementation, the old behavior is currently still supported with the command line option @@ -195,7 +195,7 @@ iterator iter(): int = yield 123 - + proc takesProc[T: proc](x: T) = discard proc takesIter[T: iterator](x: T) = discard @@ -221,10 +221,15 @@ - Signed integer literals in `set` literals now default to a range type of `0..255` instead of `0..65535` (the maximum size of sets). - + - Case statements with else branches put before elif/of branches in macros are rejected with "invalid order of case branches". +- Destructors now default to `.raises: []` (i.e. destructors must not raise + unlisted exceptions) and explicitly raising destructors are implementation + defined behavior. + + ## Standard library additions and changes [//]: # "Changes:" |