help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Calling a function with undefined symbol


From: Sam Steingold
Subject: Re: Calling a function with undefined symbol
Date: Wed, 02 Nov 2022 10:25:24 -0400
User-agent: Gnus/5.13 (Gnus v5.13)

> * Michael Heerdegen <zvpunry_urreqrtra@jro.qr> [2022-11-02 13:14:55 +0100]:
>
> Say the variable `x` is bound to
>
>   '''''''''''''''''''''''''''''''''...

i.e.,

(defconst x #1=(quote #1#))

right?
NB: (setq print-circle t) before attempting the above!

> i.e. a value that is a quoted thing where the thing is the same value
> again (such a value exists in Elisp!) - what would evaluating
>
>   (eq 'x x)
>   (equal 'x x)

nil: you are comparing a symbol 'x' with a circular list
(quote (quote ...))

what you probably meant was

(eq x (eval x))
(equal x (eval x))

which both evaluate to t because eval just scrolls the circular list
once - to its original starting point

-- 
Sam Steingold (https://aphar.dreamwidth.org/) on darwin Ns 10.3.2113
https://lastingimpactpsychology.com https://steingoldpsychology.com
https://www.peaceandtolerance.org/ https://www.memritv.org
When C++ is your hammer, everything looks like a thumb.



reply via email to

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