[Issue 18209] std.uni.byGrapheme is not usable in CTFE

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jan 9 14:01:45 UTC 2018


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

--- Comment #3 from Jack Stouffer <jack at jackstouffer.com> ---
(In reply to Jack Stouffer from comment #2)
> Apparently this isn't possible.
> 
> There are two ways of fixing this
> 
> 1. remove the small string optimization from Grapheme
> 2. have byGrapheme return a specialized type of Grapheme that doesn't have
> SSO

Or

3. Create a special function byGraphemeCTFE which is a range of CTFEGraphemes.
That way there's no performance regression

--


More information about the Digitalmars-d-bugs mailing list