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

Vladimir Panteleev thecybershadow.lists at gmail.com
Sun Apr 8 20:58:29 PDT 2012


On Sun, 08 Apr 2012 09:34:48 +0300, Walter Bright <walter at digitalmars.com>  
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:vladimir at thecybershadow.net


More information about the dmd-beta mailing list