ringabout
26b86c8f4d
Makes except: panics on Defect ( #24821 )
...
implements https://github.com/nim-lang/RFCs/issues/557
It inserts defect handing into a bare except branch
```nim
try:
raiseAssert "test"
except:
echo "nope"
```
=>
```nim
try:
raiseAssert "test"
except:
# New behaviov, now well-defined: **never** catches the assert, regardless of panic mode
raiseDefect()
echo "nope"
```
In this way, `except` still catches foreign exceptions, but panics on
`Defect`. Probably when Nim has `except {.foreign.}`, we can extend
`raiseDefect` to foreign exceptions as well. That's supposed to be a
small use case anyway.
`--legacy:noPanicOnExcept` is provided for a transition period.
2025-04-03 16:09:58 +02:00
..
2023-03-02 09:16:28 +01:00
2023-03-02 09:16:28 +01:00
2022-03-23 20:57:13 +01:00
2020-04-07 15:17:30 +02:00
2020-10-14 13:58:36 +02:00
2021-11-12 11:19:24 +01:00
2021-02-08 09:46:07 +01:00
2018-12-11 21:23:22 +01:00
2018-12-11 21:23:22 +01:00
2021-11-17 10:15:54 +01:00
2025-04-03 16:09:58 +02:00
2019-05-06 09:34:03 +02:00
2021-01-11 18:02:32 +01:00
2021-09-14 19:40:42 +02:00
2024-06-04 09:43:12 +02:00
2024-10-25 22:36:19 +02:00
2020-04-08 09:56:16 +02:00
2023-05-27 15:27:42 +02:00
2020-11-18 07:56:31 +00:00
2021-03-02 19:41:55 +08:00
2022-03-23 20:57:13 +01:00
2024-10-15 09:19:46 +08:00
2023-03-02 09:16:28 +01:00
2024-09-02 18:22:20 +02:00
2023-06-01 19:37:01 +02:00
2023-04-21 15:37:58 +02:00
2023-06-04 08:56:11 +02:00
2025-04-03 16:09:58 +02:00
2024-01-18 14:40:22 +01:00
2024-07-06 23:10:15 +02:00
2019-11-05 11:05:46 +01:00
2025-04-01 09:37:54 +02:00
2025-03-11 09:57:48 +01:00
2025-02-19 23:03:58 +01:00
2023-03-27 17:20:20 +02:00
2022-09-03 09:52:13 +02:00
2024-12-13 19:30:53 +08:00
2025-02-25 17:08:22 +01:00
2022-09-23 13:05:05 +02:00
2020-04-07 15:17:30 +02:00
2020-01-16 14:14:03 +01:00
2020-10-30 10:00:25 +01:00
2021-09-14 19:39:55 +02:00
2018-10-30 16:52:33 +01:00
2022-09-23 13:05:05 +02:00
2023-04-19 11:55:54 +02:00
2023-11-25 18:27:27 +01:00
2018-12-11 21:23:22 +01:00
2018-12-11 21:23:22 +01:00
2022-09-23 13:05:05 +02:00
2024-10-16 20:49:31 +02:00
2021-01-22 13:14:28 +01:00
2021-03-11 14:03:25 +01:00
2019-01-25 13:13:55 +01:00
2022-01-17 11:14:13 +01:00
2018-12-11 21:23:22 +01:00
2022-09-03 09:52:13 +02:00
2019-11-06 14:35:45 +01:00
2020-11-26 20:00:31 +01:00
2022-09-23 13:05:05 +02:00
2025-02-19 23:03:58 +01:00
2019-09-02 17:48:06 +02:00
2023-04-24 06:52:37 +02:00
2019-05-21 21:31:40 +02:00
2019-06-26 23:15:58 +02:00
2020-12-14 10:58:29 +01:00
2020-11-28 09:09:31 +01:00
2024-11-21 23:50:49 +08:00
2019-05-10 08:03:48 +02:00
2019-02-08 09:56:32 +01:00
2024-10-14 17:07:57 +02:00
2019-05-05 16:08:16 +02:00
2021-02-08 09:46:07 +01:00
2024-10-11 10:36:40 +02:00
2023-06-16 20:59:59 +02:00
2019-05-10 11:43:58 +02:00
2019-05-06 09:34:03 +02:00
2019-05-06 09:34:03 +02:00
2019-05-06 09:34:03 +02:00
2019-05-06 09:34:03 +02:00
2019-05-06 09:34:03 +02:00