On this page
since
Templates
-
template since(version: (int, int); body: untyped) {...}{.dirty.}
-
Evaluates
body
if the(NimMajor, NimMinor)
is greater than or equal toversion
. Usage:
Source Editproc fun*() {.since: (1, 3).} since (1, 3): fun()
-
template since(version: (int, int, int); body: untyped) {...}{.dirty.}
-
Evaluates
body
if(NimMajor, NimMinor, NimPatch)
is greater than or equal toversion
. Usage:
Source Editproc fun*() {.since: (1, 3, 1).} since (1, 3, 1): fun()
© 2006–2021 Andreas Rumpf
Licensed under the MIT License.
https://nim-lang.org/docs/since.html