[Issue 3199] sort(chain(...)) doesn't work in some cases

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jul 21 14:21:55 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=3199





--- Comment #1 from Adolf Mathias <adolf.mathias at googlemail.com>  2009-07-21 14:21:54 PDT ---
I'm very sorry, the second, working example should have been:

import std.algorithm, std.random, std.stdio, std.range;

void main() {
  int[] a = [16,80,6,43,43,6,29,16,1,64,75,59,40,5,63], 
        b = [43,11,71,39,32,82,94,42,18],
        c = [17,70,93,96,64,3,24,84,88];

  auto abc=[a,b,c];


  foreach(t;abc) writefln("[%s]",t);
  sort(chain(a,b,c));
  foreach(t;abc) writefln("[%s]",t);
}

-- 
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