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: Michael Heerdegen
Subject: Re: Calling a function with undefined symbol
Date: Sun, 06 Nov 2022 00:22:58 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Emanuel Berg <incal@dataswamp.org> writes:

> (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

You do it... but indirectly.  I wanted to add a quote to the value
already generated.  Like this:

  (equal #1='#1# ''#1#) ==> t

or

  (let ((x #1='#1#))
    (equal x `',x)) ==> t

The backquote-quote-unquote combination is a nicely short way of quoting
an existing value (instead of an expression like a symbol).

But the conclusion is the same as you described.

Michael.




reply via email to

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