Why isn't == used to compare structs

Trass3r un at known.com
Mon Feb 8 06:36:15 PST 2010


> I believe the question was *why* things are this way. I think it's weird.
>

It's common behavior. In the end structs are just a way to map a memory  
range to some variable tuple.

If you really need == for all members you can always overload opEquals!!


More information about the Digitalmars-d-learn mailing list