Files
Nim/tests/ccgbugs
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
..
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
2019-05-06 09:34:03 +02:00
2021-01-11 18:02:32 +01:00
2021-09-14 19:40:42 +02:00
2020-11-18 07:56:31 +00:00
2021-03-02 19:41:55 +08:00
2019-11-05 11:05:46 +01:00
2024-12-13 19:30:53 +08:00
2022-09-23 13:05:05 +02:00
2021-09-14 19:39:55 +02:00
2018-12-11 21:23:22 +01:00
2022-09-23 13:05:05 +02:00
2021-01-22 13:14:28 +01:00
2021-03-11 14:03:25 +01:00
2020-11-26 20:00:31 +01:00
2022-09-23 13:05:05 +02:00
2019-06-26 23:15:58 +02:00
2024-11-21 23:50:49 +08:00
2019-05-05 16:08:16 +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