From: Caitlin <The...@ro...> - 2008-11-02 09:10:50
|
Hi. Ok. I'm working on the exercises in the following primer: http://mypage.iu.edu/~colallen/lp/lp.html ..and the problem (4a) reads: Given the following definition: (setf mylist '((bush broccoli) (nixon watergate) (letterman (viewer mail)) (you are no jack kennedy) (and please) (scorsese (robert deniro)))) Construct the following with any of the functions you have learned so far. a. (no broccoli please) My code reads: (setf mylist '((bush broccoli) (nixon watergate) (letterman (viewer mail)) (you are no jack kennedy) (and please) (scorsese (robert deniro)))) (setq saying (append (first mylist) (fourth mylist) (fifth mylist))) (list (ninth saying) (fifth saying) (second saying)) The output in Gnu Common Lisp (version 2.6.6) is correct, i.e., (no broccoli please) but in clisp 2.47, I see the following error: *** - READ from #<INPUT CONCATENATED-STREAM #<INPUT STRING-INPUT-STREAM> #<IO TERMINAL-STREAM>>: an object cannot start with #\) The following restarts are available: ABORT :R1 Abort debug loop ABORT :R2 Abort main loop Any ideas? Is this an error on my part or a bug? Thanks, Caitlin |