[gambit-list] Bug (?) with BlackHole and append!

Yves Parès limestrael at gmail.com
Fri Aug 6 12:26:10 EDT 2010


Hello,

I have a file "test.scm" containing the following lines:

(import (std srfi/1))

(define a '(3 2 4 2))
(append! a '(8 8 8))

(display a)
(newline)


When I lauch: gsc -e '(load "~~/lib/modules/build")' -
and then (import test) it displays '(3 2 4 2 8 8 8)', which is fine.
But if 'test' has been compiled first with (module-compile! 'test), then
when importing I got the error:

*** ERROR IN ##main -- (Argument 1) MUTABLE object expected
(set-cdr! '(2) '(8 8 8))


(I use the last git version of BH)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20100806/0b4069f8/attachment.htm>


More information about the Gambit-list mailing list