Closed MartinNowak closed 9 years ago
Don't structs without opEquals just do a direct memory comparison?
Don't structs without opEquals just do a direct memory comparison?
They do by field comparison which can optimized to memcmp sometimes. The problem here is that depending on which union member is used, you need to compare more or less memory as the rest isn't cleared on assignment/initialization. https://issues.dlang.org/show_bug.cgi?id=13952