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

Signatures can subset Int #99

Open
hwayne opened this issue Oct 21, 2019 · 3 comments
Open

Signatures can subset Int #99

hwayne opened this issue Oct 21, 2019 · 3 comments
Labels
food-for-thought Open problems

Comments

@hwayne
Copy link

hwayne commented Oct 21, 2019

The following spec is accepted by Alloy:

 sig A in Int {}

By this guide, you should not be able to declare a signature as a subset of Int.

@pkriens
Copy link
Contributor

pkriens commented Dec 23, 2021

@dnjackson can you comment?

@pkriens
Copy link
Contributor

pkriens commented Mar 1, 2023

@dnjackson still waiting for your comment :-)

@nmacedo
Copy link
Contributor

nmacedo commented Apr 11, 2023

This has been allowed at least since version 4, as long as the "experimental" flag is set to true, which has been for all releases :) Likewise for String and seq/Int by the way. (There are a lot of features under this experimental flag, this should probably be revised eventually.)

Personally, I think it's useful to have sub-signatures of Int, what are the cons?

@nmacedo nmacedo added the food-for-thought Open problems label Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
food-for-thought Open problems
Projects
None yet
Development

No branches or pull requests

3 participants