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

Variable assignments in constraints aren' t typed #1

Open
timfel opened this issue Aug 9, 2013 · 1 comment
Open

Variable assignments in constraints aren' t typed #1

timfel opened this issue Aug 9, 2013 · 1 comment

Comments

@timfel
Copy link
Member

timfel commented Aug 9, 2013

Consider:

always { a = 1 }

makes a an untyped constraint variable and just runs the assignment, instead of creating the appropriately typed assignment.

@alanb2718
Copy link

Is this really an issue though? always expects a block that represents a constraint, so the expression should evaluate to a boolean, and also be side-effect-free (or the side effects are benign). a=1 doesn't meet these restrictions, so always { a = 1 } isn't well formed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants