www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Re: Random string samples & unicode - Reprise

 I think what we need here is an AsciiString type.

Good. I was thinking about something similar, but your details are more developed. In Python3 there is something vaguely similar, named bytearray. (Eventually I may like a Dstring-like struct that contains compressed dchars and allows for random access with [] with complexity O(ln n). The compression allows to reduce cache misses and reduces memory traffic, improving performance in some special situations. But this type is for later). Bye, bearophile
Sep 12 2010