Beginner not getting "string"

Steven Schveighoffer schveiguy at yahoo.com
Mon Aug 30 05:46:56 PDT 2010


On Sun, 29 Aug 2010 14:17:44 -0400, Andrei Alexandrescu  
<SeeWebsiteForEmail at erdani.org> wrote:

> On 08/29/2010 12:44 PM, Nick wrote:

>> 4. All string-processing calls (like sort, toupper, split and such) are
>> by default wrong on non-ascii strings. Wrong without any error, warning
>> or anything.
>
> You'll be glad to hear that this assumption is false.
>
> 1. sort does not compile for char[] or wchar[]. The reason is that  
> char[] and wchar[] do not obey the random-access requirements.

char[] x;
x.sort; // compiles 2.048

Is a deprecation planned?

-Steve


More information about the Digitalmars-d mailing list