Check nim compiler version during compilation

2021-12-18 Thread demotomohiro
Please read the system module document:

Check nim compiler version during compilation

2021-12-18 Thread BarrOff25
Thank you very much this is exactly what I have been looking for!

Check nim compiler version during compilation

2021-12-18 Thread BarrOff25
Hello, I would like to call different code, depending on the version of the nim compiler used. Some code uses the deprecated version of `readChars` found [here](https://nim-lang.org/docs/io.html#readChars%2CFile%2CopenArray%5Bchar%5D%2CNatural%2CNatural). Converting it to the new overload works