From: gyliu
Subject: How to define dynamic variable?
Date: 
Message-ID: <347A8A88.62F@cs.hku.hk>
Hi, Everybody:
   I want to generate a dynamic variable and assign a value to this
variable at run time with LISP language?
   Could you help me?
   Thanks
   Liu Geyang      
   email: ·····@cs.hku.hk
From: Barry Margolin
Subject: Re: How to define dynamic variable?
Date: 
Message-ID: <65icun$k5c@pasilla.bbnplanet.com>
In article <············@cs.hku.hk>, gyliu  <·····@cs.hku.hk> wrote:
>   I want to generate a dynamic variable and assign a value to this
>variable at run time with LISP language?

You can only do this easily with special variables:

(setq sym 'foo)
(setq val 'bar)
(setf (symbol-value sym) val)
foo => BAR

-- 
Barry Margolin, ······@bbnplanet.com
GTE Internetworking, Powered by BBN, Cambridge, MA
Support the anti-spam movement; see <http://www.cauce.org/>
Please don't send technical questions directly to me, post them to newsgroups.