Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site uwai.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!uwvax!uwai!neves From: neves@uwai.UUCP Newsgroups: net.lang.lisp Subject: Re: Responses to: "LISP" by Winston & Horn: is the 2nd Edition better? Message-ID: <208@uwai.UUCP> Date: Mon, 3-Jun-85 10:18:31 EDT Article-I.D.: uwai.208 Posted: Mon Jun 3 10:18:31 1985 Date-Received: Tue, 4-Jun-85 00:55:39 EDT References: <2433@wateng.UUCP> <4384@mit-eddie.UUCP> Distribution: net Organization: U of Wisconsin CS Dept Lines: 30 > >For example when they discuss property lists they mention how to get > >values off the plist (with get) but they do not mention the function to > >put properties on the property list (put). Instead they use a macro > >(setf) which is used to set other things as well. > > > >wisc-ai!neves (David Neves) > Common Lisp doesn't have a "put" or "putprop" function. The only way to > put items on the property list in Common Lisp is with "setf". > ... > By the way, I don't think "setf" is a macro in CL (it is a macro in > Maclisp and Zetalisp). If it were, then there would have to be a "put" > or "putprop" for it to expand into in the above use. ... I have a prepublication version of the Steele book so I apologize if I gave out some incorrect information above about putprop. However, my copy says that setf is a macro and that there is a function "putpr" which places information on the property list. I would hope that setf is not a special form replacing array/property list functions because this would introduce some inefficiency, wouldn't it? If this information is incorrect please correct me. -- David Neves Computer Sciences Department University of Wisconsin-Madison Usenet: {allegra,heurikon,ihnp4,seismo,uwm-evax}!uwvax!neves Arpanet: neves@uwvax