José Romero <jose.cyb...@gmail.com>
writes:

> On Wed, 28 Sep 2011 20:27:15 +0200
> Thorsten <quintf...@googlemail.com> wrote:
>
>> 
>> Hi list, 
>> I thought that  (quote (...)) and '(...) should be equivalent, but I
>> get different results with the following two versions of a little
>> test program:
>> 
>> # version A
>> (prog 
>>    (let (tab  '((1 2 3 ) (4 5 6) (7 8 9)))
>>    (+ (caar tab) (caar (cdr tab)))) )
>> 
>> ---
>> result:
>> : -> 5
>> 
>> # version B
>> (prog 
>>    (let (tab  (quote ((1 2 3 ) (4 5 6) (7 8 9))))
>>    (+ (caar tab) (caar (cdr tab)))) )
>> 
>> ---
>> result:
>> : !? (+ (caar tab) (caar (cdr tab)))
>> (1 2 3) -- Number expected
>> 
>> 
>> Thats a bit strange - at least for me ;)
>> cheers
>> Thorsten
>> 
>
> See http://picolisp.com/5000/!wiki?ArticleQuote :3 that article pretty
> much says why it behaves the way it does.
>
> Cheers,
> José

I see, so (quote (1 2 3) (4 5 6) (7 8 9)) would be equivalent to '((1 2
3 ) (4 5 6) (7 8 9)). 
Thanks for the link
cheers
Thorsten

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to