[Top][All Lists]

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

Re: Which Elisp types are mutable?

From: Eli Zaretskii
Subject: Re: Which Elisp types are mutable?
Date: Mon, 05 Jul 2021 21:48:51 +0300

> From: Philipp <>
> Date: Mon, 5 Jul 2021 20:41:58 +0200
> Cc: Help Gnu Emacs mailing list <>
> > Well, in my book, "you can't mutate them" is.  You always /can/ mutate
> > a string, but of you do it in certain circumstances, you're asking for
> > trouble.
> You can mutate all objects, because all of them are stored in mutable memory.

Not if you put it in read-only memory: you'd get a segfault with any
modern OS.

> For a reference manual, "you're asking for trouble" isn't a terribly useful 
> statement.

And "you must not mutate them" is?  At least "you're asking for
trouble" explains why not, especially if it actually describes some of
the trouble.

reply via email to

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