I can't tell if this is a bug or if there is a way to change this so it works.
echo @["a", "b", "c"] # expected, prints @["a", "b", "c"]
echo(varargs[string](@["a", "b", "c"])) # prints ["a", "b", "c"]
Run
This also doesn't cut it:
proc a(x: varargs[string, `$`]) = echo x
a "a", "b", "c" # prints ["a", "b", "c"]
Run
Is this a limitation of the `varargs[string, `$`]` type? I saw there was a PR
that fixed overloading for these types but I don't think I saw anything
mentioned about passing varargs between each other. Is there an issue open for
this on the Nim github?