On Sun, 08 Apr 2012 09:34:48 +0300, Walter Bright <[email protected]> wrote:

My plan to ease into this is not going well.

At the moment, either remove the nothrow from S.opEquals, or wrap the throwing == with a try...catch(Exception).

I have hit another problem:

import std.algorithm;

struct S
{
        int n;

        string toString()
        {
                return null;
        }
}


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

Compiling the above program prints a wall of error messages.

I don't think this is related to the pure/nothrow. Seems to be an unrelated regression from 2.058.

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

Reply via email to