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

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

Reply via email to