added a warning that the .deprecate statement is unreliable for routines

This commit is contained in:
Andreas Rumpf 2017-11-21 10:48:19 +01:00
commit 58187f2120
7 changed files with 5 additions and 15 deletions

View file

@ -56,9 +56,6 @@ proc raiseOSError*(msg: string = "") {.noinline, rtl, extern: "nos$1",
raise newException(OSError, msg)
{.pop.}
when not defined(nimfix):
{.deprecated: [osError: raiseOSError].}
proc `==`*(err1, err2: OSErrorCode): bool {.borrow.}
proc `$`*(err: OSErrorCode): string {.borrow.}