-
Notifications
You must be signed in to change notification settings - Fork 18
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
add lobsters example #72
Conversation
the interesting thing is that:
|
I don't think this is a bug in Cozy. Instead, I think this specification is not the one you intended. You have a |
I have added a note to #23 that Cozy should warn you about unused abstract state variables. |
I've made this PR example-only |
The specification still has the unused |
In reflection, there is a problem that I don't understand -- I uses |
or put it another way, I don't know how to enforce the fact that |
Collections in Cozy are value types, not references like they are in Java. To make them references you would need to wrap them in a |
But |
I see. The individual Vote objects may alias, not the collections that contain them. The |
What do you mean? Do you mean that I should add an invariant? |
Yes, I meant that you should add an invariant. However, I see now that you already have the invariant Is it clear why The statement |
I see that you added the invariant I suggested (although GitHub declined to notify me). I am merging this now; thanks for adding this example! |
No description provided.