Major performance problem with std.array.front()

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Fri Mar 7 11:11:49 PST 2014


On 3/7/14, 9:24 AM, Vladimir Panteleev wrote:
>> 5. Implement new std.array.front for strings that doesn't decode.
>
> Until then, how will people use strings with algorithms when they mean
> to use them per-byte? A .raw property which casts to ubyte[]?

There's no "until then".

A current ".representation" property already exists that casts all 
string types appropriately.

Andrei


More information about the Digitalmars-d mailing list