In 2.0 and `devel` you can use the expanded `constructor` pragma. There is a 
similar example in the docs: 
<https://nim-lang.github.io/Nim/manual_experimental.html#constructor-pragma>

Reply via email to