From 460147601f0b9115415dcb23a9b79b3b01677bb2 Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Wed, 25 May 2022 17:42:05 -0400 Subject: [PATCH] Adding notes --- circ-test.scm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/circ-test.scm b/circ-test.scm index dbe2a513..9a0ad804 100644 --- a/circ-test.scm +++ b/circ-test.scm @@ -15,3 +15,13 @@ (define l2 (list l1)) (set-cdr! l1 l2) (display l1) + +; TODO: need to compare pointers to prevent this sort of thing: +; +; cyclone> (display #(1 1 1 1 1 1 1 1)) +; #(... ... ... ... ... ... ... ...) +; +; for equalp of pairs we track progress using cdr, cddr +; proves that if pointers are equal we are traversing the same list +; +; how to handle vector traversal?