2008/7/30 Maciek Godek <[EMAIL PROTECTED]>:
>
> By the way I have a question (regarding not using eval).
> I want to pass the contents of a list to a function that accepts the
> so-called "rest" args.
> (let ((l '(1 2 3 4 5)))
> (let ((operation (append '(+) l)))
> (primitive-eval operation)
Neil Jerram <[EMAIL PROTECTED]>:
>> How to achieve this effect without using eval?
>> (I've tried (+ . l) but it didn't work out)
>
> (apply + l)
Correct :)
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:
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 exampl
>> 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"
>> quo
"Maciek Godek" <[EMAIL PROTECTED]> writes:
> Neil Jerram <[EMAIL PROTECTED]>:
>
>>> How to achieve this effect without using eval?
>>> (I've tried (+ . l) but it didn't work out)
>>
>> (apply + l)
>
> Correct :)
> Here comes another one:
> Suppose I want to define a variable, but I don't know its
Rob Browning <[EMAIL PROTECTED]> writes:
> This was on my list, but time got away from me. I'll see what I can
> do.
OK, I should be uploading packages that include Neil's two patches
this weekend, if not sooner.
Thanks
--
Rob Browning
rlb @defaultvalue.org and @debian.org; previously @cs.utex