Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site cmu-cs-spice.ARPA Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!rochester!cmu-cs-pt!cmu-cs-spice!djz From: djz@cmu-cs-spice.ARPA (Daniel Zigmond) Newsgroups: net.lang.lisp Subject: Putprop (or put) vs. setf with get Message-ID: <374@cmu-cs-spice.ARPA> Date: Wed, 5-Jun-85 19:36:24 EDT Article-I.D.: cmu-cs-s.374 Posted: Wed Jun 5 19:36:24 1985 Date-Received: Fri, 7-Jun-85 02:00:06 EDT Organization: Carnegie-Mellon University, CS/RI Lines: 20 In a compatibility note on page 165 of Common Lisp: the Language, Guy Steele writes: "...What MacLisp and InterLisp call puprop is accomplished in Common Lisp by using get with setf." However, because setf is a macro, all Common Lisps must have some form of putprop (or put). In Spice Lisp, (macroexpand '(setf (get 'a 'b) 'c) returns something like: (let ((g1 'a) ;the numbers vary, of course. (g2 'b) (g4 'c)) (%put g1 g2 g4)) So although Common Lisp does not directly support putprop, it is still essential (as was pointed out by someone in a previous message) to have something like putprop for the setf with get to expand into. Dan Zigmond