On Mon, 09 Apr 2012 07:14:32 +0300, Walter Bright <[email protected]> wrote:

It has nothing to do with toString. The following fails in the same way:

import std.algorithm;

struct S
{
     int n;
}


void main()
{
     S[] all;
     sort!q{a.n > b.n}(all);
}

That program compiles for me.

Removing either toString or the asterisk (array of pointers to structs -> array of structs) makes the errors go away.

--
Best regards,
 Vladimir                            mailto:[email protected]
_______________________________________________
dmd-beta mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/dmd-beta

Reply via email to