Ian Price <ianpric...@googlemail.com> writes:

> anyway. Anyway if vectors are immutable, as I believe they are, it

I, of course, meant vector literals, but a quick test shows this is not
the case. 

(define v #(1 2 3))
(pk v)
(vector-set! v 0 #f)
(pk v)

~ $ guile -s /tmp/test.scm

;;; (#(1 2 3))

;;; (#(#f 2 3))

Hmm, the sharing is indeed a problem then.

-- 
Ian Price -- shift-reset.com

"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"

Reply via email to