GNU Guile 3.0.8
Using `guile3 < file.scm` to run the code below will makes the result
of tp unpredictable (pointing to very random things)
I am not sure about the set-cdr! and quote usage. However, i runned
the same code in other schemes, mit, chicken, racket/r6rs, gambit, and
they all yield tl a
GNU Guile 3.0.8
Using `guile3 < file.scm` to run the code below will makes the result
of tp unpredictable (pointing to very random things)
(use-modules (ice-9 pretty-print))
(define tl '(1 2))
(define tp (cdr tl))
(set-cdr! tp (cons 3 '()))
(pretty-print tl)
(pretty-print tp)
---
However, if
Dorai Sitaram’s online Scheme tutorial, Teach Yourself Scheme in
Fixnum Days, is no longer at the link as indicated by current guile
doc.
The new link is https://ds26gte.github.io/tyscheme/index.html
Link to the wrong guile doc ->
https://www.gnu.org/software/guile/manual/html_node/Further-Readin
Dorai Sitaram’s online Scheme tutorial, Teach Yourself Scheme in
Fixnum Days, is no longer at the link as indicated by current guile
doc.
The new link is https://ds26gte.github.io/tyscheme/index.html
Link to the wrong guile doc ->
https://www.gnu.org/software/guile/manual/html_node/Further-Readi