6 Jul
2016
6 Jul
'16
04:55
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