-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compiler crash on len
of varargs[untyped]
#24258
Comments
You probably need to use template encodeList*(args: varargs[untyped]): seq[byte] =
@[byte varargsLen(args)]
let x = encodeList([22], 43)
echo x |
... but why? |
template x(v: varargs[int]) =
echo v.len
x(2, 3, 4) for comparison, this works |
|
sure, but why a separate name for it? it's conceptually the same thing except for some implementation details. |
I don't know. But in #12907 It said that
|
Description
Nim Version
2.0.8
Current Output
Expected Output
No response
Known Workarounds
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: