Why isn't == used to compare structs

Trass3r un at known.com
Mon Feb 8 09:25:54 PST 2010


> Yes, I intentionally duped the string to make sure they're not using the  
> same memory. I was thinking of something like a transitive ==.

Overload opEquals.


More information about the Digitalmars-d-learn mailing list