[Top][All Lists]

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

Re: Should let symbols be interned?

From: Lennart Borgman (gmail)
Subject: Re: Should let symbols be interned?
Date: Mon, 22 Jan 2007 22:20:37 +0100
User-agent: Thunderbird (Windows/20061207)

Miles Bader wrote:
"Lennart Borgman (gmail)" <address@hidden> writes:
   (let ((#1=#:my-uninterned-var 5))
     (+ #1# 3))
Thanks. I have never seent that syntax. I guess it is "unofficial"?

I'm not really sure what you mean; it's real reader syntax, and it's
perfectly fine to use it...  It will also be output by the lisp printer
if `print-gensym' is non-nil.  See `(elisp)Output Variables' and
`(elisp)Circular Objects' in the info manual.

Basically #:SYMBOL is read like SYMBOL, except that it's not interned.
So a further occurance of #:SYMBOL will be a _different_ symbol.

When is my-uninterned-var used in the elisp code? Only in the #:?

The #1# is actually #:my-uninterned-var (the same one as before, not a
different one with the same name).

Thanks. Let see if I understand now ;-)

So #:my-uninterned-var could be #:dummy? The name given is never used, or?

reply via email to

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