Skip to content

Modifying comptime values in modules produces inconsistencies #71

@Inky-developer

Description

@Inky-developer

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions