help-gnu-emacs
[Top][All Lists]
Advanced

[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 <address@hidden> writes:

> David Kastrup <address@hidden> 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]