summaryrefslogtreecommitdiff
path: root/test.pez
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-10-09 13:21:16 +0200
committerlemon <lsof@mailbox.org>2022-10-09 13:21:16 +0200
commitdae9fadda69b858a7fbb5ce65eb72f28aea3fdf9 (patch)
tree19ef6ef9291f67a5f035b74106f4ec6858862929 /test.pez
parent25cb8be7614ce4e21a1a3a4673abb51cf8dbf823 (diff)
only close vars when necessary
Diffstat (limited to 'test.pez')
-rw-r--r--test.pez16
1 files changed, 12 insertions, 4 deletions
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]