You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Description
## Problem\*
Resolves#4916
## Summary\*
Implements immutable `comptime` globals.
I've made a separate issue for mutable comptime globals since those
would require allowing a `mut` modifier when parsing globals in general.
## Additional Context
The scopes of the interpreter were already set up for globals to work.
The main main part that was needed here was evaluating comptime-known
identifiers during the scan pass. Without this monomorphization would
just use the original rhs of each global.
## Documentation\*
Check one:
- [ ] No documentation needed.
- [ ] Documentation included in this PR.
- [x] **[For Experimental Features]** Documentation to be submitted in a
separate PR.
# PR Checklist\*
- [x] I have tested the changes locally.
- [ ] I have formatted the changes with [Prettier](https://prettier.io/)
and/or `cargo fmt` on default settings.
---------
Co-authored-by: Tom French <15848336+TomAFrench@users.noreply.github.com>
Problem
We should be able to define
comptime
globalsHappy Case
Project Impact
None
Impact Context
No response
Workaround
None
Workaround Description
No response
Additional Context
No response
Would you like to submit a PR for this Issue?
None
Support Needs
No response
The text was updated successfully, but these errors were encountered: