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

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

Re: RE: Symbol Properties having global context


From: Christopher Dimech
Subject: Re: RE: Symbol Properties having global context
Date: Sun, 6 Dec 2020 21:25:10 +0100

I got to "9.2 Defining Symbols".  It only mentions that defvar and defconst
define a symbol as a global variable.

Could something be written and your comments were very enlightening.

> Sent: Sunday, December 06, 2020 at 9:13 PM
> From: "Drew Adams" <drew.adams@oracle.com>
> To: "Christopher Dimech" <dimech@gmx.com>, "Help Gnu Emacs" 
> <help-gnu-emacs@gnu.org>
> Subject: RE: Symbol Properties having global context
>
> > 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]