> * Ronald <·········@163.pbz> [2006-12-26 13:56:29 +0800]:
>
> (cons 1 '2)
> (cons 1 2)
>
> What's the semantic of '2 and 2?
'2 means (QUOTE 2), i.e., "do not evaluate 2".
2 means evaluate 2. 2 is self-evaluating, it evaluates to itself, so it
is functionally identical to '2.
the difference is stylistic.
http://www.lisp.org/HyperSpec/Body/sec_3-1-2-1-3.html
http://www.lisp.org/HyperSpec/Body/glo_s.html#self-evaluating_object
--
Sam Steingold (http://sds.podval.org/) on Fedora Core release 6 (Zod)
http://palestinefacts.org http://pmw.org.il http://openvotingconsortium.org
http://mideasttruth.com http://ffii.org http://israelunderattack.slide.com
The world is coming to an end. Please log off.