home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / bsd_srcs / usr.bin / lisp / lispnews / text0046.txt < prev    next >
Encoding:
Text File  |  1985-11-10  |  593 b   |  21 lines

  1.   It can't do symbolic links (I've only been adding system calls that I had
  2. a use for).
  3.  
  4.   setf is a generalized setq.  The target can be an expression which locates
  5. a value.  setf figures out how to store in the target.
  6. for example:
  7.  
  8.   (setf x 3)        ==  (setq x 3)
  9.   (setf (car x) 3)  == (rplaca x 3)
  10.   (setf (get foo 'bar) 3) == (putprop foo 3 'bar)
  11.  
  12. the target must be something it has been 'taught' to understand, or it can
  13. be a macro, in which case setf macro-expands it and takes another look.
  14.  
  15. The setf macro (and a list of targets it knows about is in
  16. /usr/lib/lisp/common2.l)
  17.  
  18.  
  19.  
  20.  
  21.