setf not working

Elias Mårtenson lokedhs at gmail.com
Thu Oct 3 07:44:09 UTC 2013


On 3 October 2013 15:40, Willem Broekema <metawilm at gmail.com> wrote:

> I guess you are modifying the value of *var*, which is not allowed if it is
> a quoted list. That's why you need e.g. (list .. ..) or (copy-tree '(.. ..))
> instead of '(.. ..).
> http://stackoverflow.com/questions/10365470/modifying-a-list-passed-as-a-parameter-gives-different-results-in-sbcl-and-clisp

(SETQ *var* ...) does not change the list. It merely reassigns the variable.



More information about the pro mailing list