Ian Wild writes:
> I've been playing with this over the weekend. It turns out
> that set-cdr! is working as expected, but the top level REPL
> can't print dotted pairs! Just try '(a . b), for example.
>
Oops. In fact it can print very complicated things such as:
(let ((l1 '(1 2 3))
(l2 '(a b)))
(list l1 l2 (cons l2 l1)))
==> (#0=(1 2 3) #1=(a b) (#1# . #0#))
but not such a simple thing as simple cons ;-)
> This seems to be a bug in the "print circular" code, possibly
> in print.c/printlist_star(). I can't say I understand the code
> well enough to be sure this won't break it further but, on my home
> machine, the following patch makes the problem go away:
I have applied your patch to the current development tree
Thanks.
-- Erick
Received on Mon Jul 20 1998 - 20:49:07 CEST
This archive was generated by hypermail 2.3.0
: Mon Jul 21 2014 - 19:38:59 CEST