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

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

bug#23487: 25.0.93; Modules: add functionality to create and copy unibyt


From: Philipp Stephani
Subject: bug#23487: 25.0.93; Modules: add functionality to create and copy unibyte strings
Date: Mon, 09 May 2016 18:06:41 +0000



Eli Zaretskii <address@hidden> schrieb am Mo., 9. Mai 2016 um 19:22 Uhr:
> From: Philipp Stephani <address@hidden>
> Date: Mon, 09 May 2016 18:45:19 +0200
>
> Currently creating unibyte strings with the C module API is rather
> convoluted: one has to create a list with the individual bytes and then
> call `unibyte-string', requiring lots of memory allocations.  Given that
> creating a unibyte string is more fundamental than creating a multibyte
> string, I propose adding functions to create and extract unibyte strings
> that exactly mirror the existing support for multibyte strings.

Can you explain why you need to create unibyte strings, or describe a
use case where this would be required?

I don't have a concrete use case per se, but the API feels incomplete without this functionality, especially given that creation of multibyte strings is supported and uses unibyte strings under the hood.

I'll let +Daniel Colascione chime in for his opinion. 

reply via email to

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