https://issues.dlang.org/show_bug.cgi?id=13348

Steven Schveighoffer <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
            Summary|std.uni.byGrapheme is       |std.uni.Grapheme is impure
                   |impure                      |due to using C malloc and
                   |                            |friends

--- Comment #6 from Steven Schveighoffer <[email protected]> ---
OK, so pretty much all the problems stem from malloc/realloc/free being used to
manage the memory of the Grapheme type.

There is one obvious fix: isRegionalIndicator can be marked pure nothrow.

we could move the allocation scheme to use the GC instead of C malloc. But I
don't know what this does for performance. As the comments say, most uses will
never use the allocation.

CC Dmitry.

--

Reply via email to