[gambit-list] segfault on re-defining variable
Vijay Mathew
vijay.the.lisper at gmail.com
Wed Jul 6 04:55:12 EDT 2016
Reproducing a session at the gambit REPL that led to a segmentation fault:
$ uname -srmp
Darwin 14.5.0 x86_64 i386
$ gsc
Gambit v4.8.4
> (define xs '(1 2 3))
> (let* ((x (car xs)) (xs (cdr xs)) (y (car (xs))) (xs (cdr xs)) (z (car
xs))) (+ x y z))
*** ERROR IN (console)@2.43 -- Operator is not a PROCEDURE
((2 3))
1> xs
(2 3)
1> (define xs '(1 2 3))
*** WARNING -- defining global variable: xs
[1] 11502 segmentation fault gsc
Also wondering why the `xs` in the `let*` bindings is referring to the
global `xs`.
Thanks,
--Vijay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20160706/dea5929b/attachment.htm>
More information about the Gambit-list
mailing list