[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Creating a list
From: |
David Kastrup |
Subject: |
Re: Creating a list |
Date: |
Thu, 19 Nov 2009 12:41:41 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) |
Cecil Westerhof <Cecil@decebal.nl> writes:
> David Kastrup <dak@gnu.org> writes:
>
>>> At the moment I create a list with:
>>> (setq ret-val (cons total-amount (cons current-amount ())))
>>> I thought about doing it with:
>>> (setq ret-val (cons total-amount '(current-amount)))
>>>
>>> But then the second value is the string current-amount
>>
>> Wrong. The _symbol_ current-amount.
>
> When evaluating I got:
> (1570378.2570192777 current-amount)
> That is why I thought I got the string.
A string would have quote marks around it.
--
David Kastrup
Gnus: Some new mails are automatically marked as 'O', Wang Lei, 2009/11/19