This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

eval'ing a self-referential vector


Consider

(define x (vector 1 2))
(vector-set! x 1 x)
(eval x)

This eventually uses up all stack space.
I'm guessing scm_copy_tree is infinitely calling itself due to the
self-reference.

Question: why copy vectors when eval'ing them?

[or is my analysis all wet ...]