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

Wiki page on Dynamic Frames #292

Open
samuelgruetter opened this issue Jul 3, 2019 · 1 comment
Open

Wiki page on Dynamic Frames #292

samuelgruetter opened this issue Jul 3, 2019 · 1 comment
Assignees
Labels
part: documentation Dafny's reference manual, tutorial, and other materials priority: not yet Will reconsider working on this when we're looking for work

Comments

@samuelgruetter
Copy link
Collaborator

I was struggling to understand how to get modifies clauses right. If I understand correctly, there's a mechanical pattern involving Repr and Valid, which is just some boilerplate code I have to write and then not worry about it anymore, or which I could even have autogenerated by :autocontracts. Is there a guide about this? At the moment, all I have is

What's missing is a bigger example with at least three layers of nested objects and some while loops, because that's where the difficulties usually come up.

The revisions of this gist show how I got stuck on a modifies clause problem and then solved it.
Not sure if I would have succeeded without talking to @RustanLeino, so the issue is "create documentation so that users can learn this on their own".

@dafny-lang dafny-lang locked as resolved and limited conversation to collaborators Jul 8, 2019
@dafny-lang dafny-lang unlocked this conversation Jul 8, 2019
@acioc acioc added part: documentation Dafny's reference manual, tutorial, and other materials and removed should-be-wiki-page labels Jun 22, 2020
@acioc acioc added this to the Post 3.0 milestone Aug 5, 2020
@robin-aws robin-aws removed this from the Post 3.1 milestone Sep 22, 2021
@robin-aws
Copy link
Member

This might be at least a partial solution: dafny-lang/libraries#22

@davidcok davidcok self-assigned this Jul 15, 2022
@MikaelMayer MikaelMayer added the priority: not yet Will reconsider working on this when we're looking for work label Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
part: documentation Dafny's reference manual, tutorial, and other materials priority: not yet Will reconsider working on this when we're looking for work
Projects
None yet
Development

No branches or pull requests

6 participants