cannot sort an array of char
    Ali Çehreli via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Wed Nov  5 10:54:57 PST 2014
    
    
  
On 11/05/2014 10:01 AM, Ali Çehreli wrote:
 >>>         sort (c.byCodeUnit);
 >>>     }
 >>>
 >>> But IMO it should.
 >>
 >> https://issues.dlang.org/show_bug.cgi?id=13689
 >
 > It can't be a RandomAccessRange because it cannot satisfy random access
 > at O(1) time.
Sorry, I misunderstood (again): code unit is random-access, code point 
is not.
Ali
P.S. I would like to have a word with the Unicode people who settled on 
the terms "code unit" and "code point". Every time I come across one of 
those, I have to think at least 5 seconds to fool myself to think that I 
understood correctly which one was meant. :p
    
    
More information about the Digitalmars-d-learn
mailing list