Miles Bader wrote:
"Lennart Borgman (gmail)" <[EMAIL PROTECTED]> writes:
However the real question was of course if the same obarray is used for symbols created by let variable declarations (did I get everything right now?;-) as for symbols created by "defvar" variables. I was surprised by that and a bit curious.

Interning is done by the reader, it has absolutely no connection to the
interpretation of what is being read.

If you want to use an uninterned variable name in a let statement, you
can use the "#:" reader syntax, along with the #n= and #n# syntaxes to
allow using the uninterned variable:

   (intern-soft "my-uninterned-var")
    => nil
   (let ((#1=#:my-uninterned-var 5))
     (+ #1# 3))
    => 8
   (intern-soft "my-uninterned-var")
    => nil

-Miles


Thanks. I have never seent that syntax. I guess it is "unofficial"? When is my-uninterned-var used in the elisp code? Only in the #:?




_______________________________________________
emacs-pretest-bug mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Reply via email to