summaryrefslogtreecommitdiff
path: root/gc.pit
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2026-03-02 01:12:33 -0500
committerLLLL Colonq <llll@colonq>2026-03-02 01:12:33 -0500
commitfae5921bfcbf9f0c8c138dd13aa9c8822a75a316 (patch)
tree76d32aa066709c04d9be495f29d857ba1dcfadcd /gc.pit
parent83d7d3cf960ecb7b1e20b691d4018a67d407cf47 (diff)
Printing diagnostics
Diffstat (limited to 'gc.pit')
-rw-r--r--gc.pit13
1 files changed, 13 insertions, 0 deletions
diff --git a/gc.pit b/gc.pit
new file mode 100644
index 0000000..28eed50
--- /dev/null
+++ b/gc.pit
@@ -0,0 +1,13 @@
+(diagnostics!)
+(setq! foo (cons 1 2))
+(setq! bar (cons foo 3))
+(setq! baz (cons bar foo))
+(diagnostics!)
+(print! foo)
+(setcar! foo baz)
+(print! (cdr (car (car foo))))
+(diagnostics!)
+(setq! foo nil)
+(setq! bar nil)
+(setq! baz nil)
+(diagnostics!)