emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: Should let symbols be interned?


From: Stefan Monnier
Subject: Re: Should let symbols be interned?
Date: Sun, 21 Jan 2007 23:41:24 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (gnu/linux)

>>> Then evaluate the intern-soft line again. Now the variable is interned.
>> You're confusing variables and symbols.
> Thanks, yes, I should of course have written "symbol is interned".  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.  But not too much, I do not want to dive into the mathematics
> of that.

I rest my case: you're confusing variables and symbols.
Symbols are fundamentally nothing more than hash-consed strings.

Symbols are created by the lexer, not by the evaluator, so insertion into
a big obarray only affects the performance of the lexer/parser.


        Stefan




reply via email to

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