I have a template with an untyped variable (which is actually an array of tuples - to-be Table):
template doSth(v: untyped) =
     static:
          echo v.len  # this works fine
     
     let z = v.len # this complains that it "cannot evaluate at compile time"
How is that possible? What am I missing?
What about?
template doSth(v: untyped) =
     static:
          echo v.len  # this works fine
     
     let z = static(v.len)
Thanks a lot for the input.
I did change it to const after all.
I tried to make a very minimal example but was not able to re-produce it, so I guess it mostly had to do with my overkill with the templates (I'm doing my best to fix it, right now) :)