-
-
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
Cannot evaluate sizeof arrays on compiletime #5802
Labels
VM
see also `const` label
Comments
Maybe somewhat releated,
|
It looks that |
This is now possible. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The size of array is known on compile time, yet nim is unable to evaluate
sizeof(SomeArrayType)
. This limits the ability to use computations on compile time. Found this trying to compute the md5 raindbow table on compile time.Minimal example:
Result:
The text was updated successfully, but these errors were encountered: