In the following example, does it mean that the procedure with the pragma ".since" will be used starting with Nim 1.1?
include "system/inclrtl"
proc test() =
echo "old test"
proc test() {.since: (1, 1).} =
echo "new test"
test()
Where can I find documentation about this pragma?It is just a when block. Similar to when defined(release), but using the integers from the version number as conditional.
template since(version, body: untyped) {.dirty.} =
when (NimMajor, NimMinor) >= version:
body