[dmd-beta] Fighting with 2.059 and not quite winning
Walter Bright
walter at digitalmars.com
Sat Apr 7 23:34:48 PDT 2012
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).
On 4/7/2012 4:15 PM, Vladimir Panteleev wrote:
> class C
> {
> override bool opEquals(Object o) const nothrow
> {
> return true;
> }
> }
>
> struct S
> {
> C o;
>
> bool opEquals(ref const S s) const nothrow
> {
> return o == s.o;
> }
> }
More information about the dmd-beta
mailing list