mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-19 07:21:19 +00:00
documents system.cmp's platform specific behaviour; fixes #8930
This commit is contained in:
@@ -1237,6 +1237,8 @@ proc cmp*[T](x, y: T): int {.procvar.} =
|
||||
|
||||
proc cmp*(x, y: string): int {.noSideEffect, procvar.}
|
||||
## Compare proc for strings. More efficient than the generic version.
|
||||
## **Note**: The precise result values depend on the used C runtime library and
|
||||
## can differ between operating systems!
|
||||
|
||||
proc `@`* [IDX, T](a: array[IDX, T]): seq[T] {.
|
||||
magic: "ArrToSeq", nosideeffect.}
|
||||
|
||||
Reference in New Issue
Block a user