Skip to content
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

Modifying comptime values in modules produces inconsistencies #71

Open
Inky-developer opened this issue Jun 19, 2022 · 0 comments
Open
Labels
bug Something isn't working

Comments

@Inky-developer
Copy link
Owner

Describe the bug
Changing a comptime variable in a module from a function within that module is currently allowed, however the updated value can only be seen by the modifying function and not by accessing the variable from outside the module.

Example: https://inky-developer.github.io/debris-playground/?code=55656a39d2ce36a0447f3ac314b5dbe58fbf879b

Expected behavior
Either modules should be consistent with other objects and don't allow changing comptime variables, or modules should not be normal objects.

@Inky-developer Inky-developer added the bug Something isn't working label Jun 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant