Non-Purity of Algebraic opEquals

Steven Schveighoffer via Digitalmars-d digitalmars-d at puremagic.com
Fri Sep 18 11:38:20 PDT 2015


On 9/18/15 2:37 PM, Steven Schveighoffer wrote:

> The issue is not the comparison of the values, it's the comparison of
> the TypeInfo, which is going to be Object.opEquals no matter what your
> actual types are.

Actually, I should qualify this with the fact that I don't really know 
how VariantN works :) So I could also be wrong.

But your code snippet was comparing TypeInfos.

-Steve



More information about the Digitalmars-d mailing list