SET can set the value of symbols;
 
SETQ can set the value of variables;
 
SETF is a macro that will call different function depending on what was called as its first argument.
 
examples
 
(set (quote l) '(1 2 3))
(1 2 3)
 
 
(set l '(1 2 3))
Failure, l must be a symbol.
 
 
(set 'l '(1 2 3))
(1 2 3)
 
 
(setq l '(1 2 3))
(1 2 3)
 
 
(setq (car l) 10)
Failure.
 
 
(setf l '(1 2 3))
(1 2 3)
 
 
(setf (car l) 10)

 

l is (10 2 3)
 posted on 2013-11-03 01:28  Jiang, X.  阅读(714)  评论(0编辑  收藏  举报