From: Vassili Bykov
Subject: Re: (HELP (HELP (HELP (HELP))))
Date: 
Message-ID: <m3n2xt9iz2.fsf@wintermute.hip.cam.org>
In article <········································@top.cis.syr.edu>
"Abdullah M. Al-Mutawa" <······@top.cis.syr.edu> writes:

   I have a very simple code but I could not find my way out with it !
   I whant to assign values to symbols DYNAMICLY! by the following:

   (defun define (dbname &rest arglist)
	    (eval (list 'setf dbname arglist) )     

   The goal is when I type: (define 'mydata 'abdullah 12 'mutawa)
	     I get : (setf mydata '('abdullah 12 'mutawa)) <evaluated>  

   Is there a way around it, do you think eval is not a good idea, or maybe
   I should use apply? and how???

No, it is not.  It rarely is.  At least, use

  (setf (symbol-value dbname) arglist)

and rename DEFINE into something less general.

'vb