remove deprecated stuff from the stdlib; introduce better deprecation warnings

This commit is contained in:
Araq
2018-05-04 14:03:16 +02:00
committed by Andreas Rumpf
parent 608017801d
commit bbb0fd4eb7
54 changed files with 44 additions and 287 deletions

View File

@@ -13,9 +13,6 @@ type
SortOrder* = enum ## sort order
Descending, Ascending
{.deprecated: [TSortOrder: SortOrder].}
proc `*`*(x: int, order: SortOrder): int {.inline.} =
## flips `x` if ``order == Descending``;
## if ``order == Ascending`` then `x` is returned.