given this:
Code: Select all
(define (c cc)(setf (eval (cc 0)) (cons (cc 1) '())))
Code: Select all
ERR: no symbol reference found
Code: Select all
("this" "that")
Code: Select all
(set 'this "that")
Code: Select all
(define (c cc)(setf (eval (cc 0)) (cons (cc 1) '())))
Code: Select all
ERR: no symbol reference found
Code: Select all
("this" "that")
Code: Select all
(set 'this "that")
Code: Select all
(define (c cc)
(set (sym (cc 0)) (cons (cc 1) '())))
(c '("this" "that")) => ("that")
; the symbol 'this' is now set to ("that")
this => ("that")