[Issue 1339] Invariant/const-ness is broken by built-in array	properties sort and reverse
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Mon May 10 01:44:48 PDT 2010
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=1339
--- Comment #13 from Don <clugdbug at yahoo.com.au> 2010-05-10 01:44:42 PDT ---
There's a bit of code in druntime, in rt/adi.d which is affected by this.
extern (C) long _adSortChar(char[] a)
{
    if (a.length > 1)
    {
-        dstring da = toUTF32(a);
+        dchar [] da = cast(dchar[])(toUTF32(a));
        da.sort;
and likewise for _adSortWChar.
But it'd probably be better to modify rt/util/utf/toUTF32().
-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
    
    
More information about the Digitalmars-d-bugs
mailing list