Since we don't use closures as pairs in the stack anymore, the
[picobit.git] / tests / test-pairs.scm
blob1d6251991cf8d78247656ece2630c3222e5bc3b4
1 (define l '(0 1 2 3 4 5 6))
3 (define l2 (cons 2 3))
5 (set-car! l2 1)
6 (display (car l2))
8 ;; ;; (define l2 (cons (list-ref l 4) 2)) ; (list-ref l (getchar))
10 ;(led l) ;; invalid, but just to use l
12 (define x 9)
13 ;(led x)
15 (display (list-ref l 6)) ;; TODO but (car l2) is ok, cdr too, but l and l2 fail, l2 with a segfault, since it's a pair and not a list, list bugs too but not as spectacular
16 ;; TODO louche, si on fait list-ref de 1, ca marche, 4 affiche rien, 6 segfaulte