Sorting char arrays
Magnus Lie Hetland
magnus at hetland.org
Mon Mar 12 05:51:33 PDT 2012
The following fails, which I guess is a bug?
import std.algorithm;
void main() {
char[] a = ['a', 'b', 'c'];
sort(a);
}
I thought maybe I'd report it -- sort of surprises me that it hasn't
been reported before, but I couldn't find it (although I found some
similar reports) in the Bugzilla. (No biggie for me, though; the Phobos
sort seems to fail with all kinds of things, so I have my own anyway...
;)
--
Magnus Lie Hetland
http://hetland.org
More information about the Digitalmars-d-learn
mailing list