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

Limit modifies terms #2

Open
pascutto opened this issue Nov 23, 2020 · 3 comments
Open

Limit modifies terms #2

pascutto opened this issue Nov 23, 2020 · 3 comments
Labels

Comments

@pascutto
Copy link
Contributor

consumes and modifies declarations currently accept any terms.
These should be restricted to qualified identifiers only e.g. x.y.z.

@backtracking
Copy link
Contributor

Do we want to allow x.(old y).z?

@mariojppereira
Copy link
Contributor

Do we want to allow x.(old y).z?

That is very interesting, indeed :) I believe this would make sense only for consumes, right? A modifies clause containing an old seems odd to me.

@backtracking
Copy link
Contributor

Here is an example where modifies x.(old y).z would make sense:

type t = { mutable y: int ref }
let f (x: t) = x.y := 0; x.y <- ref 0

@pascutto pascutto added the syntax label Sep 5, 2021
@pascutto pascutto closed this as not planned Won't fix, can't repro, duplicate, stale Feb 2, 2023
@pascutto pascutto reopened this Feb 3, 2023
@pascutto pascutto changed the title Limit consumes/modifies terms Limit modifies terms Feb 3, 2023
@pascutto pascutto changed the title Limit modifies terms Limit modifies terms Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants