Added std/effecttraits.nim (#15462)

This commit is contained in:
Andreas Rumpf 2020-10-02 17:22:31 +02:00 • committed by GitHub
commit 1f4b9cebd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 53 additions and 1 deletions

View file

@ -292,7 +292,9 @@ proc mydiv(a, b): int {.raises: [].} =
- `system.deepcopy` has to be enabled explicitly for `--gc:arc` and `--gc:orc` via
`--deepcopy:on`.
- Added a `std/effecttraits` module for introspection of the inferred `.raise` effects.
We hope this enables `async` macros that are precise about the possible exceptions that
can be raised.
- Added `critbits.toCritBitTree`, similar to `tables.toTable`, creates a new `CritBitTree` with given arguments.