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: Emanuel Berg
Subject: Re: Calling a function with undefined symbol
Date: Sat, 05 Nov 2022 15:32:02 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Michael Heerdegen wrote:

>> (setq print-circle t)
>>
>> (setq x #1=(quote #1#))
>>
>> (eq    'x x) ; nil
>> (equal 'x x) ; nil
>>
>> ?
>
> I don't see any place in your code where a quote-quine is
> quoted. You correctly assign a quote-quine to a variable.
> But then you only quote the symbol, not the value, and
> compare the quote-quine with the symbol you had bound it to.
>
> IOW: It's a trap!
>
> So how could a correct `equal'ity test of a quote-quine and
> that quote-quine quoted be achieved?

Beats me!

Because quoting it will just add another level/layer of the
same, and in the same way, to something that is
already infinite.

(setq print-circle t)

(setq x #1=(quote #1#))

(equal x #1=(quote #1#)) ; t

(equal x (quote #1=(quote #1#))) ; t

(equal x (quote (quote #1=(quote #1#)))) ; and so on

So I give my tongue to the cat then?

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

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