help-gnu-emacs
[Top][All Lists]
Advanced

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

RE: Symbol Properties having global context


From: Drew Adams
Subject: RE: Symbol Properties having global context
Date: Sun, 6 Dec 2020 12:13:54 -0800 (PST)

> Am reading the section "9.4 Symbol Properties".  The section that not
> say that
> symbol properties such as "value" have a global context.

It is symbols themselves that are global objects.
It follows that their property values are also.

(Of course, a Lisp value can be shared.)

Symbols are stored in obarrays.  By default, they
are stored in the obarray that is the value of
global variable `obarray'.

So you can have two symbols with the same name
(the name is just one of a symbols properties,
its `symbol-name'), but which have different
values for other properties, such as
`symbol-value'.

E.g., you can have two symbols `foo', in two
different obarrays, with two different values
when used as a variable.  (They can also have
different `symbol-function' value, etc.)



reply via email to

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