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

[Feature Request] Allow modulus operator in requires #174

Open
AlanRosenthal opened this issue Sep 4, 2024 · 1 comment
Open

[Feature Request] Allow modulus operator in requires #174

AlanRosenthal opened this issue Sep 4, 2024 · 1 comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request language feature

Comments

@AlanRosenthal
Copy link

I would like to enforce this requirement: Range: 0x0002 to 0xFFFE; only even values are valid

I was envisioning something like this:

    [requires: 0x0002 <= this <= 0xFFFE]
    [requires: this % 2 == 0]
@EricRahm EricRahm added the enhancement New feature or request label Sep 14, 2024
@reventlov
Copy link
Collaborator

This would be covered by #41

@reventlov reventlov added the duplicate This issue or pull request already exists label Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request language feature
Projects
None yet
Development

No branches or pull requests

3 participants