template import non compile in nim 2.0.4

2024-06-14 Thread ringabout
It works on the devel as well

template import non compile in nim 2.0.4

2024-06-14 Thread Martinix75
wow! So it works! Now I try on the real case! thanks x 1000!

template import non compile in nim 2.0.4

2024-06-14 Thread PMunch
The error message is super unhelpful (it's says it can't find the file). However if you mark the template as `{.dirty.}` then it works.

template import non compile in nim 2.0.4

2024-06-14 Thread Martinix75
Hi guys, I have a little problem; the following program (example) is compiled with Nim2.0.0 but not with Nim 2.0.4! has something changed? How can it be resolved? template init() = import std/strformat init() let nome = "Andrea" echo (fmt"