Major performance problem with std.array.front()

Dmitry Olshansky dmitry.olsh at gmail.com
Sat Mar 8 14:42:14 PST 2014


08-Mar-2014 20:43, Vladimir Panteleev пишет:
> On Saturday, 8 March 2014 at 15:56:08 UTC, Dmitry Olshansky wrote:
>> The following should work as is though:
>>
>> s.byGrapheme.canFind(Grapheme("é"))
>
> Doesn't work here. Not sure why.
>
> Grapheme(1000065, 3, 0, 33554432, [101, 0, 0, 1, 3, 0, 0, 0, 0, 0, 0, 0,
> 0, 0, 0], 2) // last byGrapheme
>
> vs.
>
> Grapheme(E9, 0, 0, 16777216, [233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
> 0, 0], 1) // Grapheme("é")

Sounds like a bug, file it before we derailed.

-- 
Dmitry Olshansky


More information about the Digitalmars-d mailing list