guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

About 'quote'


From: self
Subject: About 'quote'
Date: Fri, 10 Dec 2010 19:22:26 +0800 (CST)

scheme@(guile-user)> (eq? 'abc 'abc)
$1 = #t
scheme@(guile-user)> (eq? '(+ x 1) '(+ x 1))
$2 = #f

why $1 is true and $2 is false?
when I looked for 'quoting' in the r6rs
 I found it:
Different constants that are the value of a quote _expression_ may share the same locations

I think:
'abc ' is a constant, so the first 'abc  eq the second 'abc,
and what about (+ x 1)?
I missing about how 'quote' act on non-constant?
my english is poor, sorry to that



网易163/126邮箱百分百兼容iphone ipad邮件收发

reply via email to

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