]> ocean-lang.org Git - ocean/commitdiff
oceani: create separate scope for do part of while
authorNeilBrown <neil@brown.name>
Sat, 6 Nov 2021 23:59:23 +0000 (10:59 +1100)
committerNeilBrown <neil@brown.name>
Mon, 8 Nov 2021 09:56:36 +0000 (20:56 +1100)
Any variables created in the do part won't be created in the final
iteration, so we want them to be constrained to the do part, not seen as
part of the whole loop body.
This makes while/do match if/then better.

Signed-off-by: NeilBrown <neil@brown.name>

No differences found