[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Whats wrong with this defcustom?
From: |
Robert Thorpe |
Subject: |
Re: Whats wrong with this defcustom? |
Date: |
Thu, 31 Jul 2014 22:56:56 +0100 |
Emanuel Berg <embe8573@student.uu.se> writes:
> Robert Thorpe <rt@robertthorpeconsulting.com> writes:
...
> Yeah? Isn't it just plain evaluation inside-out?
>
> (equal '(something) (quote (something))) ; t
> '(equal '(something) (quote (somethingelse))) ; nil
My point is only that the '(something) is converted into (quote
(something)) by the lisp reader. Equality wasn't really the issue
because that conversion happens before the lisp interpreter proper gets
involved. It happens before the interpreters ideas about equality are involved.
What the interpreter or evaluator sees for the code above is:
(equal (quote (something)) (quote (something))) ; t
(equal (quote (something)) (quote (somethingelse))) ; nil
BR,
Robert Thorpe
- Re: Whats wrong with this defcustom?, (continued)
- Re: Whats wrong with this defcustom?, Sebastian Wiesner, 2014/07/28
- Re: Whats wrong with this defcustom?, Olve, 2014/07/26
- Re: Whats wrong with this defcustom?, Emanuel Berg, 2014/07/29
- Re: Whats wrong with this defcustom?, Emanuel Berg, 2014/07/29
- Re: Whats wrong with this defcustom?, Emanuel Berg, 2014/07/30
- Re: Whats wrong with this defcustom?,
Robert Thorpe <=