]> ocean-lang.org Git - ocean/commitdiff
oceani: free variables as soon as they go out of scope.
authorNeilBrown <neil@brown.name>
Sat, 6 Nov 2021 04:54:52 +0000 (15:54 +1100)
committerNeilBrown <neil@brown.name>
Mon, 8 Nov 2021 09:56:36 +0000 (20:56 +1100)
Each 'exec' now keeps track of the variables that go out-of-scope when
the exec completes.
CondScope variables need to be re-linked when they get merged.

We now poison a variable when it is freed to ensure it doesn't get used
again by mistake.

The final cleanup now only needs to handle global variables

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

No differences found