sorting failed error

monarch_dodra monarchdodra at gmail.com
Mon Jul 30 23:04:51 PDT 2012


On Tuesday, 31 July 2012 at 00:21:59 UTC, bearophile wrote:
> Jonathan M Davis:
>
>> I'd actually argue that structs without opCmp shouldn't have 
>> it implicitly defined. It's just begging for bugs otherwise.
>
> For reference, this is the issue we are talking about:
> http://d.puremagic.com/issues/show_bug.cgi?id=3789
>
> The current situation is totally not acceptable. Even doing 
> what I think you are suggesting, that is generating a 
> compile-time error, is better than the current situation, that 
> leads to silent bugs.
>
> Bye,
> bearophile

Oh, thanks. Because we were talking about sorting, and you spoke 
of "comparison", I didn't get you meant comparison in the 
opEquals way (as opposed to equivalence).

Thanks for taking the time to look for the bug for me.


More information about the Digitalmars-d-learn mailing list