From ... From: Erik Naggum Subject: Re: Parsing strings into LISP syntax Date: 1999/11/06 Message-ID: <3150903015555973@naggum.no>#1/1 X-Deja-AN: 545279992 References: <80027o$v1$1@newsmaster.cc.columbia.edu> <801pjl$bnq$1@newsmaster.cc.columbia.edu> mail-copies-to: never X-Complaints-To: newsmaster@eunet.no X-Trace: oslo-nntp.eunet.no 941914220 2226 195.0.192.66 (6 Nov 1999 18:50:20 GMT) Organization: Naggum Software; +47 8800 8879 or +1 510 435 8604; fax: +47 2210 9077; http://www.naggum.no NNTP-Posting-Date: 6 Nov 1999 18:50:20 GMT Newsgroups: comp.lang.lisp * Pascal Saremsky | So the question is, how do I create dynamically a symbol 'fn which stands | for the function (fn) from the input string "fn"? the function FIND-SYMBOL takes a string a returns a symbol with that name if it exists and a status keyword that says how the symbols is available in that package. you can use this to control access only to external functions in your user-accessible package. | And, how do I create dynamically a variable x which evaluates to itself | from the input string "x"? you use special variables for this, and the symbol lookup is just like FIND-SYMBOL. if the user shall be able to use new symbols, use INTERN instead of FIND-SYMBOL. | I've played with intern, gensym, make-symbol, etc. but to no avail, and | the Graham book does not go into great detail about them. INTERN should have given you a valuable lead. perhaps you have been using a different package inadvertently? if you post your code, however, helping you becomes significantly easier. #:Erik -- Attention Microsoft Shoppers! MS Monopoly Money 6.0 are now worthless.