[dmd-beta] Fighting with 2.059 and not quite winning

Vladimir Panteleev thecybershadow.lists at gmail.com
Sun Apr 8 21:17:51 PDT 2012


On Mon, 09 Apr 2012 07:14:32 +0300, Walter Bright <walter at digitalmars.com>  
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:vladimir at thecybershadow.net


More information about the dmd-beta mailing list