For example, I have an old code like this
initTable[K,V](rightSize(capacity))
Run
Since `rightSize` is deprecated in 1.4.0, I modify the code to the following
when (1,0) <= (NimMajor, NimMinor) and (NimMajor, NimMinor) < (1,4):
initTable[K,V](rightSize(capacity))
else:
initTable[K,V](capacity)
Run
However, compiler is still saying `Warning: Deprecated since 1.4.0; rightSize
is deprecated` on the second line.
This code is part of a library and I want the code still being able to run on
before Nim 1.4 **without warning**. Users are not happy with warning =)
I am aware that `initTable[K,V]()` can be used in this case, but this is not
**general** solution to support multi-version of Nim.