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: Richard Stallman
Subject: Re: `aset` on strings, changing the size in bytes
Date: Mon, 10 Sep 2018 01:48:52 -0400

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > (let ((new-s (aset s idx newchar)))
  >   (when (stringp new-s)
  >     (setq s new-s)))

This does not work.  aset does not return the string.
It returns the character that was stored.

Changing the code to use my proposed srep is simpler
than changing it to do this.

-- 
Dr Richard Stallman
President, Free Software Foundation (https://gnu.org, https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)





reply via email to

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