add enumutils.items for sparse enums, typetraits.SomeSparseEnum (#17080)
* add enumutils.items for enum with holes * changelog * ref in lib.rst * use `type SomeSparseEnum* = (not Ordinal) and enum` instead of concept * address comment: rename back to enum with holes
This commit is contained in:
parent
74a8f23801
commit
c274e67198
6 changed files with 58 additions and 6 deletions
|
|
@ -41,8 +41,10 @@
|
|||
- Added `randState` template that exposes the default random number generator.
|
||||
Useful for library authors.
|
||||
|
||||
- Added std/enumutils module containing `genEnumCaseStmt` macro that generates
|
||||
case statement to parse string to enum.
|
||||
- Added `std/enumutils` module. Added `genEnumCaseStmt` macro that generates case statement to parse string to enum.
|
||||
Added `items` for enums with holes.
|
||||
|
||||
- Added `typetraits.SomeEnumWithHoles` for enums with holes.
|
||||
|
||||
- Removed deprecated `iup` module from stdlib, it has already moved to
|
||||
[nimble](https://github.com/nim-lang/iup).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue