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
..
2025-03-29 23:08:45 +01:00
2024-12-06 05:40:48 +01:00
2024-05-29 06:42:07 +02:00
2024-10-20 18:15:39 +02:00
2021-07-07 06:00:59 +02:00
2024-11-23 22:01:39 +01:00
2023-10-30 17:03:04 +01:00
2024-12-20 15:26:30 +01:00
2015-02-03 09:04:24 +01:00
2024-10-08 21:50:35 +02:00
2024-12-25 09:25:28 +01:00
2024-12-06 05:40:48 +01:00
2025-04-03 16:09:58 +02:00
2025-03-22 16:38:38 +01:00
2023-10-30 17:03:04 +01:00
2024-12-06 05:40:48 +01:00
2023-10-30 17:03:04 +01:00
2024-03-03 17:27:27 +01:00
2024-12-06 05:40:48 +01:00
2024-12-06 05:40:48 +01:00
2025-02-05 19:37:13 +01:00
2023-10-30 17:03:04 +01:00
2023-10-30 17:03:04 +01:00
2015-10-01 12:05:45 -07:00
2024-12-13 19:06:43 +01:00
2024-05-16 23:22:49 +02:00
2024-12-06 05:40:48 +01:00
2024-12-06 05:40:48 +01:00
2024-12-06 05:40:48 +01:00
2024-06-02 09:36:20 +08:00
2024-12-06 05:40:48 +01:00
2024-12-06 05:40:48 +01:00
2024-12-20 15:26:30 +01:00
2024-12-20 15:26:30 +01:00
2024-12-06 05:40:48 +01:00
2024-12-06 05:40:48 +01:00
2021-01-09 00:24:41 +01:00
2024-07-01 20:47:39 +02:00
2024-12-06 05:40:48 +01:00
2024-12-06 05:40:48 +01:00
2025-02-14 20:52:43 +01:00
2024-12-06 05:40:48 +01:00
2025-01-02 17:28:35 +01:00
2024-12-06 05:40:48 +01:00
2025-03-25 20:32:12 +01:00
2024-12-20 15:26:30 +01:00
2024-12-06 05:40:48 +01:00
2015-02-03 09:04:24 +01:00
2024-12-06 05:40:48 +01:00
2024-06-05 20:54:25 +02:00
2025-01-27 16:57:53 +01:00
2024-12-20 15:26:30 +01:00
2025-04-03 15:54:39 +02:00
2023-10-30 17:03:04 +01:00
2023-10-30 17:03:04 +01:00
2024-12-13 19:06:43 +01:00
2024-12-20 15:26:30 +01:00
2025-01-25 15:43:40 +01:00
2024-12-13 19:06:43 +01:00
2024-12-13 19:06:43 +01:00
2024-12-20 15:26:30 +01:00
2022-12-03 21:25:49 +08:00
2024-12-13 19:06:43 +01:00
2024-11-23 22:01:39 +01:00
2023-10-30 17:03:04 +01:00
2024-12-20 15:26:30 +01:00
2023-10-30 17:03:04 +01:00
2024-11-23 22:01:39 +01:00
2023-10-30 17:03:04 +01:00
2020-06-06 21:11:53 +02:00
2024-12-13 19:06:43 +01:00
2024-12-13 19:06:43 +01:00
2023-10-30 17:03:04 +01:00
2024-12-13 19:06:43 +01:00
2024-07-01 20:47:08 +02:00
2025-03-10 22:47:03 +08:00
2023-10-30 17:03:04 +01:00
2025-03-28 22:06:22 +08:00
2024-08-28 20:51:13 +02:00
2024-12-20 15:26:30 +01:00
2025-03-19 08:15:54 +01:00
2024-12-13 19:06:43 +01:00
2024-12-13 19:06:43 +01:00
2025-04-03 16:09:58 +02:00
2024-12-13 19:06:43 +01:00
2024-12-04 15:12:30 +01:00
2024-12-13 19:06:43 +01:00
2024-12-13 19:06:43 +01:00