2008/7/31 Maciek Godek <[EMAIL PROTECTED]>:

> Here comes another one:
> Suppose I want to define a variable, but I don't know its name
> -- it is contained in another variable. For example:
> (define a 'b)
> I want to assign a value to the symbol "contained" in a.
> (that would be b in this example). The problem is that "define"
> quotes its first argument. How to achieve it?

I'm not so sure about this one, but I think that

(eval `(define ,(car a) 1))

should work.

Now, stepping back a bit - and purely out of interest - did you
mention before why you are doing these strange things?  Is it your way
of exploring and learning, or is there (also) a specific requirement?

    Neil


Reply via email to