-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
v: add @VMODHASH
comptime variable to store the commit sha of a V module
#21091
Conversation
@VMODHASH
comptime for the commit sha@VMODHASH
comptime variable to store the commit sha of a V module
Please do not make breaking changes, in PRs that introduce new features, like Bootstrapping can get very entangled and tricky otherwise. |
Note, I do agree that a |
b2b0215
to
b06707b
Compare
Excellent work 🥳 ! |
Imho it's a super cool feature. It's a little hassle in other languages to implement. It's nice to have 😄 |
The PR should implement the possibility to store a commit hash of a vmodule as a compile time variable. Similar to Similar to
@VHASH
/@VCURRENTHASH
for V itself. The reason for it is that I encountered multiple scenarios where it would be useful and function calls in constants are not yet evaluated at comptime.