New scope solution

@jballanc I’m interested in this so I dug up the history a little bit. It looks like a rule to make your example seem to be considered once (see the “write-only” case)

but it was rejected since simple insertion of @show etc. could change the behavior.

So the final version seems to be this one:

But it seems in your second case (finish = 10 with contains_even = true in the loop body) have to be caught by the third rule (i.e., has to be an error). Is this a bug in the PR?

4 Likes