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!!
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!!