emacs-devel
[Top][All Lists]
Advanced

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

Re: `aset` on strings, changing the size in bytes


From: Stefan Monnier
Subject: Re: `aset` on strings, changing the size in bytes
Date: Sun, 09 Sep 2018 23:03:28 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> I meant to make aset cons a new string when it turns out the original
> one's data is too small to include the new contents.

`aset` is documented to return NEWELT, so what could it do with the
newly cons'd string?
We'd have to change `aset` so it returns this newly cons'd string, but
that would also be a backward incompatible change.  Better introduce
a new function `sset` for it.


        Stefan



reply via email to

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