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

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

Re: Which Elisp types are mutable?


From: Philipp
Subject: Re: Which Elisp types are mutable?
Date: Thu, 3 Jun 2021 14:11:04 +0200


> Am 03.06.2021 um 06:03 schrieb Marcin Borkowski <mbork@mbork.pl>:
> 
> Well, the subject says it all.  I could find an explicit, comprehensive
> list of mutable (or immutable) types in the Elisp manual.  Is it there
> somewhere?

Mutability is a property of objects, not types.
Some objects (numbers) are always immutable, others (markers, buffers, ...) are 
always mutable.  But objects of most "interesting" types (strings, lists, 
vectors, symbols) can be either mutable or immutable.
Some time ago, I filed https://debbugs.gnu.org/cgi/bugreport.cgi?bug=43557 to 
document which objects are mutable, but unfortunately it's not yet fixed.


reply via email to

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