Path: utzoo!attcan!uunet!mcvax!ukc!etive!aiai!jeff From: jeff@aiai.uucp (Jeff Dalton) Newsgroups: comp.lang.lisp Subject: Re: Let and Gensym question Message-ID: <555@skye.ed.ac.uk> Date: 5 Jul 89 18:36:43 GMT References: <11486@orstcs.CS.ORST.EDU> Sender: news@aiai.ed.ac.uk Reply-To: jeff@aiai.uucp (Jeff Dalton) Organization: AIAI, University of Edinburgh, Scotland Lines: 24 In article <11486@orstcs.CS.ORST.EDU> rpandey@mist.CS.ORST.EDU (Rajeev Pandey) writes: > > I have this problem that I encountered while using Kyoto Common Lisp. If I > try to use a let and a gensym together like: > > (defun whatever () > (let ((var (gensym))) > : > : > > I get an error (function var is unbound). I do the same thing in Tek Common > Lisp, or Franz Lisp, and I have no problems......... You'll have to give some more information. What do you do with var in the rest of the function? Does your problem happen only if the function is compiled? I don't have any problem when giving a variable a gensym as it's value (and I do it all the time). So I suspect there's something in the rest of the function that's significant. Jeff Dalton, JANET: J.Dalton@uk.ac.ed AI Applications Institute, ARPA: J.Dalton%uk.ac.ed@nsfnet-relay.ac.uk Edinburgh University. UUCP: ...!ukc!ed.ac.uk!J.Dalton