From dae9fadda69b858a7fbb5ce65eb72f28aea3fdf9 Mon Sep 17 00:00:00 2001 From: lemon Date: Sun, 9 Oct 2022 13:21:16 +0200 Subject: only close vars when necessary --- test.pez | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'test.pez') diff --git a/test.pez b/test.pez index 1dbdfc6..118be00 100644 --- a/test.pez +++ b/test.pez @@ -1,10 +1,18 @@ @print: {[x] printf["%a\n", x]} @Box: {[value] - @test = 7 - #[{value}, - {[new] printf["test: %a\n", test] value = new}] - } + @it = 0 + ( + @test = 7 + @h2 = 100 + it = #[{value}, + {[new] printf["test: %a\n", test] value = new}] + ) + ( + @hmm = 999 + ) + it +} @x = Box[-7] -- cgit v1.2.3