Remove the uses of {.procvar.} pragma (#14359)
This pragma did nothing. Ref: - https://github.com/nim-lang/Nim/issues/2172#issuecomment-383276469 - https://github.com/nim-lang/Nim/issues/12975
This commit is contained in:
parent
ce0552c100
commit
bf0e1c696f
13 changed files with 67 additions and 68 deletions
|
|
@ -876,7 +876,7 @@ proc `of`*[T, S](x: T, y: S): bool {.magic: "Of", noSideEffect.}
|
|||
## assert(FloatingPointDefect of Exception)
|
||||
## assert(DivByZeroDefect of Exception)
|
||||
|
||||
proc cmp*[T](x, y: T): int {.procvar.} =
|
||||
proc cmp*[T](x, y: T): int =
|
||||
## Generic compare proc.
|
||||
##
|
||||
## Returns:
|
||||
|
|
@ -894,7 +894,7 @@ proc cmp*[T](x, y: T): int {.procvar.} =
|
|||
if x < y: return -1
|
||||
return 1
|
||||
|
||||
proc cmp*(x, y: string): int {.noSideEffect, procvar.}
|
||||
proc cmp*(x, y: string): int {.noSideEffect.}
|
||||
## Compare proc for strings. More efficient than the generic version.
|
||||
##
|
||||
## **Note**: The precise result values depend on the used C runtime library and
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue