Create a variable name from a string in Lisp
问题 I'm trying to take a string, and convert it into a variable name. I though (make-symbol) or (intern) would do this, but apparently it's not quite what I want, or I'm using it incorrectly. For example: > (setf (intern (string "foo")) 5) > foo 5 Here I would be trying to create a variable named 'foo' with a value of 5. Except, the above code gives me an error. What is the command I'm looking for? 回答1: There are a number of things to consider here: SETF does not evaluate its first argument. It