Files
Nim/tests/cpp
ringabout e6f6c369ff fixes bugs on the Nim manual (#24669)
ref https://en.cppreference.com/w/cpp/error/exception/what

> Pointer to a null-terminated string with explanatory information. The
pointer is guaranteed to be valid at least until the exception object
from which it is obtained is destroyed, or until a non-const member
function on the exception object is called.

The pointer is only valid before `CStdException as e` is destroyed


Old examples are broken on macOS arm64

```
/Users/blue/Desktop/nimony/test4.nim(38) test4
/Users/blue/Desktop/nimony/test4.nim(26) fn
/Users/blue/.choosenim/toolchains/nim-#devel/lib/std/assertions.nim(41) failedAssertImpl
/Users/blue/.choosenim/toolchains/nim-#devel/lib/std/assertions.nim(36) raiseAssert
/Users/blue/.choosenim/toolchains/nim-#devel/lib/system/fatal.nim(53) sysFatal
Error: unhandled exception: /Users/blue/Desktop/nimony/test4.nim(26, 3) `$b == "foo2"`  [AssertionDefect]
```
2025-02-06 23:19:53 +01:00
..
2018-10-09 15:19:21 +02:00
2016-12-21 12:49:20 +01:00
2021-01-09 11:54:26 +01:00
2022-02-02 17:10:11 +01:00
2018-11-23 11:58:32 +01:00
2018-09-19 12:46:50 +02:00
2018-12-31 22:57:09 +01:00
2022-12-23 22:31:53 +08:00
2024-10-06 06:33:44 +02:00
2018-11-23 11:58:28 +01:00